Clean up unreadable assignments within if conditionals
Pinpointed assignments within if conditionals with spatch -sp_file tests/bad_assign.cocci (from coccinelle-0.1.4). Cherry-picked diff hunks affecting conditionals split over multiple lines, and cleaned them up.
This commit is contained in:
parent
7c6e56bd02
commit
57717b5bc1
15 changed files with 75 additions and 75 deletions
|
@ -54,9 +54,10 @@ setsector(void)
|
|||
char buf[1024];
|
||||
char char0, char1;
|
||||
|
||||
if ((what = getstarg(player->argp[1],
|
||||
"Give What (iron, gold, oil, uranium, fertility, owner, eff., mob., work, avail., oldown, mines)? ",
|
||||
buf)) == 0)
|
||||
what = getstarg(player->argp[1],
|
||||
"Give What (iron, gold, oil, uranium, fertility, owner, eff., mob., work, avail., oldown, mines)? ",
|
||||
buf);
|
||||
if (what == 0)
|
||||
return RET_SYN;
|
||||
char0 = what[0];
|
||||
char1 = what[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue