gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-mdb] branch master updated: check close() rvalues


From: gnunet
Subject: [taler-taler-mdb] branch master updated: check close() rvalues
Date: Fri, 27 Mar 2020 13:55:32 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-mdb.

The following commit(s) were added to refs/heads/master by this push:
     new 26ee025  check close() rvalues
26ee025 is described below

commit 26ee025e0e7db358e58a8685ff49544a647e300e
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 27 13:55:30 2020 +0100

    check close() rvalues
---
 src/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c
index 1718ca2..0eb3eb9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -987,7 +987,7 @@ mdb_shutdown (void)
   }
   if (-1 != mdb.uartfd)
   {
-    (void) close (mdb.uartfd);
+    GNUNET_break (0 == close (mdb.uartfd));
     mdb.uartfd = -1;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -1072,10 +1072,10 @@ shutdown_task (void *cls)
                   "failed to reset originial display state\n");
     }
     /* close the device */
-    close (qrDisplay.devicefd);
+    GNUNET_break (0 == close (qrDisplay.devicefd));
     qrDisplay.devicefd = -1;
     if (0 < qrDisplay.backlightfd)
-      close (qrDisplay.backlightfd);
+      GNUNET_break (0 == close (qrDisplay.backlightfd));
     qrDisplay.backlightfd = -1;
   }
   if (0 < cancel_button.cancelbuttonfd)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]