diff --git a/src/client/fnlist.h b/src/client/fnlist.h index 8fb8f7dd..908c7a75 100644 --- a/src/client/fnlist.h +++ b/src/client/fnlist.h @@ -41,4 +41,4 @@ struct fn { int value; }; -#endif /* _FNLIST_H_ */ +#endif /* _FNLIST_H_ */ diff --git a/src/client/misc.h b/src/client/misc.h index 8290f9f8..fac70177 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -62,7 +62,7 @@ typedef u_char natid; /* also change NSC_NATID in nsc.h */ #if !defined(aix) && !defined(sgi) #ifndef ultrix /* already defined in ultrix */ typedef char s_char; /* change to signed char for aix */ -#endif /* ultrix */ +#endif /* ultrix */ #else typedef signed char s_char; #endif /* !aix && !sgi */ diff --git a/src/client/queue.h b/src/client/queue.h index 5fe1c440..bb01ae35 100644 --- a/src/client/queue.h +++ b/src/client/queue.h @@ -41,4 +41,4 @@ struct qelem { struct qelem *q_back; }; -#endif /* _QUEUE */ +#endif /* _QUEUE */ diff --git a/src/lib/commands/buil.c b/src/lib/commands/buil.c index 23e11fa7..9fb37fa5 100644 --- a/src/lib/commands/buil.c +++ b/src/lib/commands/buil.c @@ -743,9 +743,7 @@ build_bridge(register struct sctstr *sp, register int *vec) xyas(sp->sct_x, sp->sct_y, player->cnum)); nav_map(sp->sct_x, sp->sct_y, 1); } - if (! - (p = - getstarg(player->argp[3], "build span in what direction? ", buf)) + if (!(p = getstarg(player->argp[3], "build span in what direction? ", buf)) || !*p) { return 0; } @@ -1071,9 +1069,7 @@ build_tower(register struct sctstr *sp, register int *vec) pr("Building from %s\n", xyas(sp->sct_x, sp->sct_y, player->cnum)); nav_map(sp->sct_x, sp->sct_y, 1); } - if (! - (p = - getstarg(player->argp[3], "build tower in what direction? ", buf)) + if (!(p = getstarg(player->argp[3], "build tower in what direction? ", buf)) || !*p) { return 0; } diff --git a/src/lib/commands/sail.c b/src/lib/commands/sail.c index de602b50..19a9215b 100644 --- a/src/lib/commands/sail.c +++ b/src/lib/commands/sail.c @@ -171,7 +171,7 @@ sail(void) cp = player->argp[2]; if ((*player->argp[0] == 'q') /*qsail command */ ||(cp && *cp == 'q')) { return (show_sail(&nstr)); - } else if (*player->argp[0] == 'u' /*unsail command */ + } else if (*player->argp[0] == 'u' /*unsail command */ || (cp && *cp == '-')) { return (cmd_unsail_ship(&nstr)); } else diff --git a/src/lib/global/dir.c b/src/lib/global/dir.c index 44737db8..f0b29755 100644 --- a/src/lib/global/dir.c +++ b/src/lib/global/dir.c @@ -52,7 +52,7 @@ s_char dirch[] = { /* must agree with dirch[] and DIR_ defines */ int diroff[][2] = { {0, 0}, {1, -1}, {2, 0}, {1, 1}, {-1, 1}, {-2, 0}, {-1, -1}, {0, 0}, - {0, 0} + {0, 0} }; /* this maps a character from a to z into the diroff mappings. It diff --git a/src/lib/global/misc.c b/src/lib/global/misc.c index eee38ced..dbfc0a95 100644 --- a/src/lib/global/misc.c +++ b/src/lib/global/misc.c @@ -40,7 +40,7 @@ s_char *effadv_list[] = { /* must follow nation relation defines in nat.h */ s_char *relates[] = { "At War", "Sitzkrieg", "Mobilizing", "Hostile", "Neutral", "Friendly", - "Allied" + "Allied" }; /* must follow reject flags defined in nat.h */ diff --git a/src/lib/player/empmod.c b/src/lib/player/empmod.c index 06ee64d2..a1f2ed94 100644 --- a/src/lib/player/empmod.c +++ b/src/lib/player/empmod.c @@ -148,8 +148,8 @@ extern int grin(); extern int shar(); extern int sail(); /* Forsman's hacks */ extern int foll(); -/**/ extern int mobq(); -/**/ extern int name(); +extern int mobq(); +extern int name(); extern int range(); extern int zdon(); extern int fuel(); @@ -287,7 +287,8 @@ struct cmndstr player_coms[] = { {"drop ", 1, drop, C_MOD, NORM + MONEY + CAP}, {"dump []", 0, dump, 0, NORM}, {"echo []", 0, echo, 0, NORM}, - {"edit [ ]...", 0, edit, C_MOD, GOD}, + {"edit [ ]...", 0, + edit, C_MOD, GOD}, {"enable", 0, enab, C_MOD, GOD}, {"enlist ", 2, enli, C_MOD, NORM + MONEY + CAP}, {"execute ", 0, execute, 0, VIS}, diff --git a/src/lib/subs/getele.c b/src/lib/subs/getele.c index e50a4844..cd44a7c9 100644 --- a/src/lib/subs/getele.c +++ b/src/lib/subs/getele.c @@ -76,8 +76,8 @@ getele(s_char *nation, s_char *buf) pr("%s", buf); continue; } - if (buffer[0] == '.' && ((buffer[1] == 0) || - (buffer[1] == '\n') + if (buffer[0] == '.' && ((buffer[1] == 0) + || (buffer[1] == '\n') || (buffer[1] == '\r'))) break; len = strlen(buffer); diff --git a/src/lib/subs/mission.c b/src/lib/subs/mission.c index d2273497..285cd5fe 100644 --- a/src/lib/subs/mission.c +++ b/src/lib/subs/mission.c @@ -430,9 +430,6 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list, { extern int land_max_interdiction_range; extern int ship_max_interdiction_range; - s_char *mission_name(short int mission), *nameofitem(s_char *buf, - struct genitem - *gp, int type); struct emp_qelem *qp, missiles, bombers, escorts, airp, b, e; struct emp_qelem *newqp; struct genlist *glp; diff --git a/src/server/update.c b/src/server/update.c index f89817e3..f519dad8 100644 --- a/src/server/update.c +++ b/src/server/update.c @@ -144,7 +144,7 @@ void *argv; dp = player_new(0, 0); stacksize = 100000 + /* finish_sects */ WORLD_X * WORLD_Y * (2 * sizeof(double) + - sizeof(s_char *)); + sizeof(s_char *)); empth_create(PP_UPDATE, update_main, stacksize, 0, "UpdateRun", "Updates the world", dp);