unsigned long offset;
unsigned long l_offset;
struct et_list *et;
- long table_num;
+ unsigned long table_num;
int started = 0;
unsigned int divisor = 100;
char *cp;
et = _et_list;
while (et) {
- /* Work-around for a DEC/Alpha compiler bug comparing longs */
- if (((int) (et->table->base - table_num)) == 0) {
+ if (et->table->base == table_num) {
/* This is the right table */
if (et->table->n_msgs <= offset)
break;
el->table = et;
el->next = _et_list;
_et_list = el;
-
+
return 0;
}
#define ERRCODE_RANGE 8 /* # of bits to shift table number */
#define BITS_PER_CHAR 6 /* # bits to shift per character in name */
-extern const char FAR *error_table_name ET_P((long));
-extern const char FAR *error_table_name_r ET_P((long, char FAR *));
+extern const char FAR *error_table_name ET_P((unsigned long));
+extern const char FAR *error_table_name_r ET_P((unsigned long, char FAR *));
#define _ET_H
#endif
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
const char * error_table_name_r(num, out)
- long num;
+ unsigned long num;
char FAR *out;
{
long ch;
}
const char FAR * error_table_name(num)
- long num;
+ unsigned long num;
{
static char buf[6];