Cosmetics.

This commit is contained in:
Markus Armbruster 2006-03-27 19:50:38 +00:00
parent 523936cfef
commit 3aea505aa7
4 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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))

View file

@ -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;

View file

@ -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] == '#')