]> granicus.if.org Git - curl/commit
os400.c: fix ASSIGNWITHINCONDITION checksrc warnings
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 23 Apr 2018 20:29:06 +0000 (22:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Apr 2018 07:25:12 +0000 (09:25 +0200)
commitd25f0a42e822813b385f22c8a376e54833116d5a
tree55840047f26efe70235f04e219744f37151af713
parent732d093835b165e7534e09fad7ef09e0e6098566
os400.c: fix ASSIGNWITHINCONDITION checksrc warnings

All occurrences of assignment within conditional expression in
os400sys.c rewritten into two steps: first assignment and then the check
on the success of the assignment. Also adjust related incorrect brace
positions to match project indentation style.

This was spurred by seeing "if((inp = input_token))", but while in there
all warnings were fixed.

There should be no functional change from these changes.

Closes #2525
packages/OS400/os400sys.c