gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 92/93: close diplay fd's


From: gnunet
Subject: [taler-taler-mdb] 92/93: close diplay fd's
Date: Mon, 18 Nov 2019 21:13:55 +0100

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

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

commit e56ae2fb3292a76fa2328beb55bc586c371f9ca3
Author: Boss Marco <address@hidden>
AuthorDate: Sun Nov 17 18:33:45 2019 +0100

    close diplay fd's
---
 src/main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main.c b/src/main.c
index cdf1510..76abaac 100644
--- a/src/main.c
+++ b/src/main.c
@@ -46,15 +46,12 @@ along with
 #include <gnunet/gnunet_util_lib.h>
 #include <taler/taler_json_lib.h>
 #include <taler/taler_merchant_service.h>
-
-/* for adafruit pitft display */
-#include <sys/types.h>
-#include <sys/stat.h>
+#if HAVE_QRENCODE_H             /* for adafruit pitft display */
 #include <sys/mman.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <linux/fb.h>
-
+#endif
 
 /**
  * Disable i18n support.
@@ -366,6 +363,9 @@ shutdown_task (void *cls)
     /* close device */
     close (qrDisplay.devicefd);
     qrDisplay.devicefd = -1;
+    if (0 < qrDisplay.backlightfd)
+      close (qrDisplay.backlightfd);
+    qrDisplay.backlightfd = -1;
   }
   if (NULL != products)
   {

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



reply via email to

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