#include <stdio.h>
#include <string.h>
-//#include <alloc.h>
+#include <stdlib.h>
#include "aslink.h"
/*)Module lksym.c
VOID
syminit()
{
- register int h;
struct sym **spp;
spp = &symhash[0];
}
fprintf(stderr, "Header symbol list overflow\n");
lkexit(1);
+
/* Never reached */
+ return 0;
}
/*)Function sym * lkpsym(id,f)
FILE *fp;
struct sym *tsp;
{
- register int i, j;
+ register int i;
struct sym **p;
if ((hp = headp) != NULL) {
if (*p1++ != *p2++)
return (0);
#else
- if (ccase[*p1++] != ccase[*p2++])
+ if (ccase[(unsigned char)(*p1++)] != ccase[(unsigned char)(*p2++)])
return (0);
#endif
#if CASE_SENSITIVE
h += *p++;
#else
- h += ccase[*p++];
+ h += ccase[(unsigned char)(*p++)];
#endif
} while (--n);