From 3aea505aa756420a6f55ae38126011979503059c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 27 Mar 2006 19:50:38 +0000 Subject: [PATCH] Cosmetics. --- src/lib/commands/coas.c | 2 +- src/lib/commands/fuel.c | 4 ++-- src/lib/commands/skyw.c | 2 +- src/lib/gen/emp_config.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/commands/coas.c b/src/lib/commands/coas.c index 1c407f2e..91dfed37 100644 --- a/src/lib/commands/coas.c +++ b/src/lib/commands/coas.c @@ -74,7 +74,7 @@ coas(void) float tech; struct nstr_item ni; - if (snxtsct(&nstr, player->argp[1]) == 0) + if (!snxtsct(&nstr, player->argp[1])) return RET_SYN; for (i = 0; i < TSIZE; i++) list[i] = 0; diff --git a/src/lib/commands/fuel.c b/src/lib/commands/fuel.c index 3634d56f..dc5336b2 100644 --- a/src/lib/commands/fuel.c +++ b/src/lib/commands/fuel.c @@ -210,8 +210,8 @@ fuel(void) if (!player->argp[4]) pr("%s is not in a supplied, efficient harbor\n", prship(&item.ship)); - if (!snxtitem (&tender, EF_SHIP, - getstarg(player->argp[4], "Oiler? ", buf))) + if (!snxtitem(&tender, EF_SHIP, + getstarg(player->argp[4], "Oiler? ", buf))) continue; if (!check_ship_ok(&item.ship)) diff --git a/src/lib/commands/skyw.c b/src/lib/commands/skyw.c index 030583b5..0c7a8008 100644 --- a/src/lib/commands/skyw.c +++ b/src/lib/commands/skyw.c @@ -72,7 +72,7 @@ skyw(void) float tech; struct nstr_item ni; - if (snxtsct(&nstr, player->argp[1]) == 0) + if (!snxtsct(&nstr, player->argp[1])) return RET_SYN; for (i = 0; i < TSIZE; i++) list[i] = 0; diff --git a/src/lib/gen/emp_config.c b/src/lib/gen/emp_config.c index 709975e5..7493b4bd 100644 --- a/src/lib/gen/emp_config.c +++ b/src/lib/gen/emp_config.c @@ -96,7 +96,7 @@ emp_config(char *file) return -1; } - while (fgets(buf, sizeof buf, fp) != NULL) { + while (fgets(buf, sizeof(buf), fp) != NULL) { ++lno; for (i = 0; buf[i] && isspace(buf[i]); ++i) ; if (!buf[i] || buf[i] == '#')