mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-tests: Pretend not to ignore return from fgets()
With some compilers and picky compiler settings, ignoring the return value of fgets() can cause compilation to fail. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
2f7096494b
commit
58bd3f8dca
@ -568,8 +568,13 @@ static bool reclock_parse(struct ctdbd_context *ctdb)
|
||||
goto fail;
|
||||
}
|
||||
ok:
|
||||
/* Swallow possible blank line following section */
|
||||
fgets(line, sizeof(line), stdin);
|
||||
/* Swallow possible blank line following section. Picky
|
||||
* compiler settings don't allow the return value to be
|
||||
* ignored, so make the compiler happy.
|
||||
*/
|
||||
if (fgets(line, sizeof(line), stdin) == NULL) {
|
||||
;
|
||||
}
|
||||
DEBUG(DEBUG_INFO, ("Parsing reclock done\n"));
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user