(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h

defines them would be possible, but isn't worth the trouble.  Replace
by unabbreviated types.
This commit is contained in:
Markus Armbruster 2006-03-25 07:05:34 +00:00
parent 21bf6b41d4
commit 8054aafb9a
22 changed files with 109 additions and 113 deletions

View file

@ -125,7 +125,7 @@ static int *bitmaps[5] = {
#define GCFy(y) ((y + WORLD_Y) % WORLD_Y)
int
emp_getbit(int x, int y, u_char *bitmap)
emp_getbit(int x, int y, unsigned char *bitmap)
{
int id;
@ -134,7 +134,7 @@ emp_getbit(int x, int y, u_char *bitmap)
}
void
emp_setbit(int x, int y, u_char *bitmap)
emp_setbit(int x, int y, unsigned char *bitmap)
{
register int id;
@ -143,8 +143,7 @@ emp_setbit(int x, int y, u_char *bitmap)
}
void
emp_setbitmap(register int x, register int y, register u_char *bitmap,
int *bitmaps)
emp_setbitmap(int x, int y, unsigned char *bitmap, int *bitmaps)
{
register int *mp;
register int id;
@ -159,7 +158,7 @@ emp_setbitmap(register int x, register int y, register u_char *bitmap,
}
void
bitinit2(struct nstr_sect *np, u_char *bitmap, int country)
bitinit2(struct nstr_sect *np, unsigned char *bitmap, int country)
{
struct sctstr sect;
int eff;