[pisa-src] r1242 - trunk/pisabeacon/beaconmain.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 21 Oct 2009 11:39:14 +0200

Author: tjansen
Date: Wed Oct 21 11:39:14 2009
New Revision: 1242

Log:
Formatting changes.

The longopt list is much more readable if we have one line per option.

Modified:
   trunk/pisabeacon/beaconmain.c

Modified: trunk/pisabeacon/beaconmain.c
==============================================================================
--- trunk/pisabeacon/beaconmain.c       Wed Oct 21 11:30:43 2009        (r1241)
+++ trunk/pisabeacon/beaconmain.c       Wed Oct 21 11:39:14 2009        (r1242)
@@ -19,17 +19,22 @@
 #include <stdio.h>             /* printf(...) */
 #include <stdlib.h>            /* malloc(...) */
 #include <unistd.h>            /* usleep(...) */
+
 /**
  * A set of options, including each long option and single-letter option
  */
-static const struct option plb_longopts[] = { { "geo_id", required_argument,
-               NULL, 'i' }, { "bc_interval", required_argument, NULL, 't' }, {
-               "bc_addr", required_argument, NULL, 'd' }, { "bc_port",
-               required_argument, NULL, 'p' },
-               { "background", no_argument, NULL, 'b' }, { "listen", 
no_argument,
-                               NULL, 'l' }, { "debug", no_argument, NULL, 'd' 
}, { "version",
-                               no_argument, NULL, 'v' }, { "help", 
no_argument, NULL, 'h' }, {
-                               NULL, 0, NULL, '\0' } };
+static const struct option plb_longopts[] = {
+       { "geo_id", required_argument, NULL, 'i' },
+       { "bc_interval", required_argument, NULL, 't' },
+       { "bc_addr", required_argument, NULL, 'd' },
+       { "bc_port", required_argument, NULL, 'p' },
+       { "background", no_argument, NULL, 'b' },
+       { "listen", no_argument, NULL, 'l' },
+       { "debug", no_argument, NULL, 'd' },
+       { "version", no_argument, NULL, 'v' },
+       { "help", no_argument, NULL, 'h' },
+       { NULL, 0, NULL, '\0' }
+};
 
 typedef enum {
        PLB_SENDER = 0, /* sender mode: broadcast packets */

Other related posts:

  • » [pisa-src] r1242 - trunk/pisabeacon/beaconmain.c - Thomas Jansen