taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit a701ad8384dcfad3ec5697b01d8074b856993e1a
parent 1f46dda63333edf16b2c0dfc9f3b4cce30f2c7a9
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 13 Jan 2024 21:45:12 +0100

-style fixes

Diffstat:
Msrc/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 @@ -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 @@ -92,11 +74,6 @@ struct Display /** - * Next program to launch. - */ -static char *const *arg_next; - -/** * Name of the framebuffer device (i.e. /dev/fb1). */ static char *framebuffer_device_filename; @@ -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);