diff --git a/src/lib/commands/rea.c b/src/lib/commands/rea.c index be4ddc6e..5e4063a9 100644 --- a/src/lib/commands/rea.c +++ b/src/lib/commands/rea.c @@ -64,7 +64,7 @@ rea(void) FILE *telfp; int teles; int size; - unsigned int nbytes; + unsigned nbytes; char buf[1024]; char msgbuf[4096]; /* UTF-8 */ int lasttype; diff --git a/src/lib/commands/retr.c b/src/lib/commands/retr.c index 83d1029c..d5f1d006 100644 --- a/src/lib/commands/retr.c +++ b/src/lib/commands/retr.c @@ -54,7 +54,7 @@ retr(void) int isfleet = 0; int rflags = -2; int zero; - unsigned int x; + unsigned x; char buf1[1024]; char buf2[1024]; @@ -204,7 +204,7 @@ lretr(void) int zero; char buf1[1024]; char buf2[1024]; - unsigned int x; + unsigned x; if (!snxtitem(&ni, EF_LAND, player->argp[1])) return RET_SYN; diff --git a/src/lib/common/bestpath.c b/src/lib/common/bestpath.c index 20fbc578..0fc2fafb 100644 --- a/src/lib/common/bestpath.c +++ b/src/lib/common/bestpath.c @@ -70,8 +70,8 @@ int dy[6] = { 0, -1, -1, 0, 1, 1 }; * would be slow. And, since world size only changes at init * time, we can do this safely. */ -static unsigned int *mapbuf; -static unsigned int **mapindex; +static unsigned *mapbuf; +static unsigned **mapindex; /* * Find passable path from X, Y to EX, EY for nation OWN. @@ -90,14 +90,14 @@ bestownedpath(char *bpath, char *bigmap, { int i, j, tx, ty, markedsectors; int minx, maxx, miny, maxy, scanx, scany; - unsigned int routelen; + unsigned routelen; if (!mapbuf) - mapbuf = malloc(WORLD_X * WORLD_Y * sizeof(unsigned int)); + mapbuf = malloc(WORLD_X * WORLD_Y * sizeof(unsigned)); if (!mapbuf) return NULL; if (!mapindex) { - mapindex = malloc(WORLD_X * sizeof(unsigned int *)); + mapindex = malloc(WORLD_X * sizeof(unsigned *)); if (mapindex) { /* Setup the map pointers */ for (i = 0; i < WORLD_X; i++) diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index 48e433b5..5a6a738b 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -332,7 +332,7 @@ empth_threadMain(void *pvData) /* seed the rand() function */ time(&now); - srand(now ^ (unsigned int)pThread); + srand(now ^ (unsigned)pThread); /* Switch to this thread context */ loc_RunThisThread(); diff --git a/src/lib/player/player.c b/src/lib/player/player.c index 21292269..032f35b6 100644 --- a/src/lib/player/player.c +++ b/src/lib/player/player.c @@ -142,7 +142,7 @@ player_main(struct player *p) int command(void) { - unsigned int i; + unsigned i; char *redir; /* UTF-8 */ char scanspace[1024]; @@ -152,10 +152,6 @@ command(void) scanspace, &redir) < 0) { pr("See \"info Syntax\"?\n"); } else { - /* XXX don't use alarm; use a scavenger thread */ - /* DONT USE IT!!!! alarm and sleep may and dont work - together -- Sasha */ - /* alarm((unsigned int)60*60); 1 hour */ if (player->condarg != NULL) for (i = 0; i < strlen(player->condarg); i++) player->condarg[i] = tolower(player->condarg[i]); diff --git a/src/lib/subs/mission.c b/src/lib/subs/mission.c index 2f68323b..6506541a 100644 --- a/src/lib/subs/mission.c +++ b/src/lib/subs/mission.c @@ -978,7 +978,7 @@ mission_pln_sel(struct emp_qelem *list, int wantflags, int nowantflags, struct plchrstr *pcp; struct plist *plp; int y, bad, bad1; - unsigned int x; + unsigned x; for (qp = list->q_forw; qp != list; qp = next) { next = qp->q_forw; diff --git a/src/lib/subs/plnsub.c b/src/lib/subs/plnsub.c index 1f68ac78..eab65fca 100644 --- a/src/lib/subs/plnsub.c +++ b/src/lib/subs/plnsub.c @@ -384,7 +384,7 @@ pln_sel(struct nstr_item *ni, struct emp_qelem *list, struct sctstr *ap, struct plist *plp; int y; int bad, bad1; - unsigned int x; + unsigned x; emp_initque(list); while (nxtitem(ni, &plane)) { diff --git a/src/lib/update/sail.c b/src/lib/update/sail.c index 64e50e61..4c24f5d2 100644 --- a/src/lib/update/sail.c +++ b/src/lib/update/sail.c @@ -82,7 +82,7 @@ and therefore cannot be less than 0. "Ship #%d can move %d spaces on mobility %d (cost/sect %f)\n", sp->shp_uid, howfar, sp->shp_mobil, mobcost); #endif - if ((unsigned int)howfar < fp->maxmoves) + if ((unsigned)howfar < fp->maxmoves) fp->maxmoves = howfar; ep->mobil = sp->shp_mobil;