]> granicus.if.org Git - shadow/commitdiff
* libmisc/yesno.c: Ignore the return value of puts.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 23 Apr 2009 11:14:56 +0000 (11:14 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 23 Apr 2009 11:14:56 +0000 (11:14 +0000)
ChangeLog
libmisc/yesno.c

index 183b805246adab4f23cd326bd811cc31155731cc..ee384337bedb89900e6a02edadc94fbcee2fad0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-22  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/yesno.c: Ignore the return value of puts.
+
 2009-04-22  Nicolas François  <nicolas.francois@centraliens.net>
 
        * libmisc/age.c: Use exit(EXIT_FAILURE) instead of exit(1).
index b3e2071228c0654b1467985fc04305a8bde64439..a2eb9530e1d2f145f61cc116527d9d0e3f501f79 100644 (file)
@@ -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;
        }