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

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 12 Nov 2009 14:16:00 +0100

Author: tjansen
Date: Thu Nov 12 14:16:00 2009
New Revision: 1663

Log:
K&R style for functions requires '{' on a new line.

Modified:
   trunk/pisabeacon/beaconmain.c

Modified: trunk/pisabeacon/beaconmain.c
==============================================================================
--- trunk/pisabeacon/beaconmain.c       Thu Nov 12 14:13:35 2009        (r1662)
+++ trunk/pisabeacon/beaconmain.c       Thu Nov 12 14:16:00 2009        (r1663)
@@ -89,7 +89,8 @@
  *
  * @param quitcode   signal quit code
  */
-static void plb_quit(UNUSED int quitcode) {
+static void plb_quit(UNUSED int quitcode)
+{
        printf("Quitting PISA location server daemon...\n");
        exit(EXIT_SUCCESS);
 }
@@ -101,7 +102,8 @@
  *
  * @param argv   pointer to the array of command arguments
  */
-static void plb_print_usage(char **argv) {
+static void plb_print_usage(char **argv)
+{
        fprintf(stderr, "USAGE:\n"
                "\t%s [options]\n"
                "\n"
@@ -154,7 +156,8 @@
  * @param argc        number of command arguments
  * @param argv        pointer to the array of command arguments
  */
-static void plb_get_cmdargs(plb_ctx* ctx, const int argc, char **argv) {
+static void plb_get_cmdargs(plb_ctx* ctx, const int argc, char **argv)
+{
        int c = 0;
        int option_index = 0;
 
@@ -226,7 +229,8 @@
 /**
  * Initialize the basic settings before starting the main loop.
  */
-static void plb_init(plb_ctx* ctx, const int argc, char *argv[]) {
+static void plb_init(plb_ctx* ctx, const int argc, char *argv[])
+{
        /* Set signal handler for each signal */
        signal(SIGBUS, plb_quit);
        signal(SIGILL, plb_quit);
@@ -263,7 +267,8 @@
  * @param argc   number of command arguments
  * @param argv   pointer to the array of command arguments
  */
-int main(int argc, char *argv[]) {
+int main(int argc, char *argv[])
+{
        /* main context variable*/
        plb_ctx ctx;
 

Other related posts:

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