From cbd90eed74490e5470054d542a2d5ec9ae8f2c35 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 23 Apr 2009 11:14:56 +0000 Subject: [PATCH] * libmisc/yesno.c: Ignore the return value of puts. --- ChangeLog | 4 ++++ libmisc/yesno.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 183b8052..ee384337 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-22 Nicolas François + + * libmisc/yesno.c: Ignore the return value of puts. + 2009-04-22 Nicolas François * libmisc/age.c: Use exit(EXIT_FAILURE) instead of exit(1). diff --git a/libmisc/yesno.c b/libmisc/yesno.c index b3e20712..a2eb9530 100644 --- a/libmisc/yesno.c +++ b/libmisc/yesno.c @@ -57,7 +57,7 @@ bool yes_or_no (bool read_only) * In read-only mode all questions are answered "no". */ if (read_only) { - puts (_("No")); + (void) puts (_("No")); return false; } -- 2.40.0