gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] branch master updated: -style fixes


From: gnunet
Subject: [taler-taler-mdb] branch master updated: -style fixes
Date: Sat, 13 Jan 2024 21:45:15 +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 a701ad8  -style fixes
a701ad8 is described below

commit a701ad8384dcfad3ec5697b01d8074b856993e1a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Jan 13 21:45:12 2024 +0100

    -style fixes
---
 src/taler-mdb-display.c | 40 ++++++++--------------------------------
 1 file changed, 8 insertions(+), 32 deletions(-)

diff --git a/src/taler-mdb-display.c b/src/taler-mdb-display.c
index d486427..1654e5e 100644
--- a/src/taler-mdb-display.c
+++ b/src/taler-mdb-display.c
@@ -17,31 +17,17 @@ along with
  TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
 */
 /**
-* @file taler-mdb-display-on.c
-* @brief turn on the display back light
-* @author Boss Marco
-* @author Christian Grothoff
-*/
+ * @file taler-mdb-display.c
+ * @brief turn on the display back light on or off
+ * @author Boss Marco
+ * @author Christian Grothoff
+ */
 #include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/socket.h>
-#if HAVE_SYS_UN_H
-#include <sys/un.h>
-#endif
-#if HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#if HAVE_NETINET_IP_H
-#include <netinet/ip.h>         /* superset of previous */
-#endif
-#include <sys/stat.h>
-#include <sys/types.h>
 #include <errno.h>
-#include <termios.h>
-#include <microhttpd.h>
 #include <gnunet/gnunet_util_lib.h>
 #include <sys/mman.h>
 #include <sys/ioctl.h>
@@ -49,10 +35,6 @@ along with
 /* for adafruit pitft display */
 #include <linux/fb.h>
 
-/**
- * Disable i18n support.
- */
-#define _(s) (s)
 
 /**
  * Handle for the Framebuffer device
@@ -91,11 +73,6 @@ struct Display
 };
 
 
-/**
- * Next program to launch.
- */
-static char *const *arg_next;
-
 /**
  * Name of the framebuffer device (i.e. /dev/fb1).
  */
@@ -289,12 +266,11 @@ int
 main (int argc,
       char*const*argv)
 {
-  int ret;
-  /* the available command line options */
+  enum GNUNET_GenericReturnValue ret;
   struct GNUNET_GETOPT_CommandLineOption options[] = {
     GNUNET_GETOPT_option_flag ('i',
                                "backlight-invert",
-                               "invert the backlight on/off values (standard 
on = 1)",
+                               "toggle on vs. off",
                                &backlight_invert),
     GNUNET_GETOPT_OPTION_END
   };
@@ -302,7 +278,7 @@ main (int argc,
   ret = GNUNET_PROGRAM_run (argc,
                             argv,
                             "taler-mdb-display-on",
-                            "Turn on display.\n",
+                            "Turn frame buffer display on or off\n",
                             options,
                             &run,
                             NULL);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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