[pisa-src] r1400 - in trunk: community-operator/co_client.c community-operator/co_server.c pairing/accept.c test/checkhipd.c test/udpserver.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 13:05:06 +0100

Author: tjansen
Date: Thu Oct 29 13:05:06 2009
New Revision: 1400

Log:
Rewrote main(int argc, char **argv) functions that do not care about argc and
argv to main(void).

Modified:
   trunk/community-operator/co_client.c
   trunk/community-operator/co_server.c
   trunk/pairing/accept.c
   trunk/test/checkhipd.c
   trunk/test/udpserver.c

Modified: trunk/community-operator/co_client.c
==============================================================================
--- trunk/community-operator/co_client.c        Thu Oct 29 12:57:31 2009        
(r1399)
+++ trunk/community-operator/co_client.c        Thu Oct 29 13:05:06 2009        
(r1400)
@@ -507,7 +507,7 @@
        }
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 
        signal(SIGTERM, co_client_quit);

Modified: trunk/community-operator/co_server.c
==============================================================================
--- trunk/community-operator/co_server.c        Thu Oct 29 12:57:31 2009        
(r1399)
+++ trunk/community-operator/co_server.c        Thu Oct 29 13:05:06 2009        
(r1400)
@@ -220,7 +220,7 @@
        free(packet);
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
 
        signal(SIGTERM, co_quit);

Modified: trunk/pairing/accept.c
==============================================================================
--- trunk/pairing/accept.c      Thu Oct 29 12:57:31 2009        (r1399)
+++ trunk/pairing/accept.c      Thu Oct 29 13:05:06 2009        (r1400)
@@ -22,7 +22,7 @@
 
 /** Main program that will be run on the relay.
  */
-int main(int argc, char *argv[])
+int main(void)
 {
     struct sockaddr_in6 peer_addr;
     unsigned int addrlen;

Modified: trunk/test/checkhipd.c
==============================================================================
--- trunk/test/checkhipd.c      Thu Oct 29 12:57:31 2009        (r1399)
+++ trunk/test/checkhipd.c      Thu Oct 29 13:05:06 2009        (r1400)
@@ -12,7 +12,7 @@
 #include "packet.h"
 #include "util.h"
 
-int main(int argc, char *argv[])
+int main(void)
 {
        int ret = 0;
 
@@ -22,4 +22,3 @@
 
        exit(EXIT_SUCCESS);
 }
-

Modified: trunk/test/udpserver.c
==============================================================================
--- trunk/test/udpserver.c      Thu Oct 29 12:57:31 2009        (r1399)
+++ trunk/test/udpserver.c      Thu Oct 29 13:05:06 2009        (r1400)
@@ -15,7 +15,7 @@
 #include <arpa/inet.h>
 #include <sys/socket.h>
 
-int main(int argc, char **argv)
+int main(void)
 {
        struct sockaddr_in addr = {0};
        size_t len = sizeof(addr);

Other related posts:

  • » [pisa-src] r1400 - in trunk: community-operator/co_client.c community-operator/co_server.c pairing/accept.c test/checkhipd.c test/udpserver.c - Thomas Jansen