fix -Wparentheses warning
Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
712650b891
commit
7ed78cdf8d
4 changed files with 35 additions and 35 deletions
|
|
@ -153,7 +153,7 @@ char *input;
|
|||
fp = stdin;
|
||||
|
||||
while (fgets((char *)buf, sizeof(buf), fp)) {
|
||||
if (p = (unsigned char *)strchr((char *)buf, '\n'))
|
||||
if ((p = (unsigned char *)strchr((char *)buf, '\n')))
|
||||
*p = '\0';
|
||||
else {
|
||||
do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue