Author: tjansen Date: Thu Oct 29 16:52:28 2009 New Revision: 1418 Log: Fixed several "warning: function declaration isn’t a prototype". Replaced "int foo();" with "int foo(void);". Modified: trunk/pairing/accept.h trunk/pairing/create_accept_headers.c trunk/pairing/create_accept_headers.h trunk/pairing/create_send_headers.c trunk/pairing/create_send_headers.h trunk/performance/pisaperf.h Modified: trunk/pairing/accept.h ============================================================================== --- trunk/pairing/accept.h Thu Oct 29 16:32:05 2009 (r1417) +++ trunk/pairing/accept.h Thu Oct 29 16:52:28 2009 (r1418) @@ -45,7 +45,7 @@ #define TIMER_INTERVAL 60 // Function prototypes -int open_socket_accept(); +int open_socket_accept(void); void check_expiration_dates(int signr); #endif /* PISA_ACCEPT_H */ Modified: trunk/pairing/create_accept_headers.c ============================================================================== --- trunk/pairing/create_accept_headers.c Thu Oct 29 16:32:05 2009 (r1417) +++ trunk/pairing/create_accept_headers.c Thu Oct 29 16:52:28 2009 (r1418) @@ -18,7 +18,7 @@ * * @return A pointer to the header_general structure. Returns NULL on error. */ -header_general* create_ack_1_struct() +header_general* create_ack_1_struct(void) { config_t cfg; const char *nickname, *ipv4_addr, *ipv6_addr; Modified: trunk/pairing/create_accept_headers.h ============================================================================== --- trunk/pairing/create_accept_headers.h Thu Oct 29 16:32:05 2009 (r1417) +++ trunk/pairing/create_accept_headers.h Thu Oct 29 16:52:28 2009 (r1418) @@ -18,7 +18,7 @@ #include "accept.h" // Function prototypes -header_general* create_ack_1_struct(); +header_general* create_ack_1_struct(void); header_general* create_ack_2_struct(char *password); #endif /* PISA_CREATE_ACCEPT_HEADERS_H */ Modified: trunk/pairing/create_send_headers.c ============================================================================== --- trunk/pairing/create_send_headers.c Thu Oct 29 16:32:05 2009 (r1417) +++ trunk/pairing/create_send_headers.c Thu Oct 29 16:52:28 2009 (r1418) @@ -47,7 +47,7 @@ * * @return A pointer to the header_general structure. Returns NULL on error. */ -header_general* create_pwd_request_struct() +header_general* create_pwd_request_struct(void) { char nickname[LENGTH_NICKNAME]; char expiration1[LENGTH_TIMEOUT]; Modified: trunk/pairing/create_send_headers.h ============================================================================== --- trunk/pairing/create_send_headers.h Thu Oct 29 16:32:05 2009 (r1417) +++ trunk/pairing/create_send_headers.h Thu Oct 29 16:52:28 2009 (r1418) @@ -18,6 +18,6 @@ // Function prototypes header_general* create_pwd_struct(char *password); -header_general* create_pwd_request_struct(); +header_general* create_pwd_request_struct(void); #endif /* PISA_CREATE_SEND_HEADERS_H */ Modified: trunk/performance/pisaperf.h ============================================================================== --- trunk/performance/pisaperf.h Thu Oct 29 16:32:05 2009 (r1417) +++ trunk/performance/pisaperf.h Thu Oct 29 16:52:28 2009 (r1418) @@ -56,7 +56,7 @@ typedef struct pisa_perf_set pisa_perf_set; -int pisa_perf_enabled(); +int pisa_perf_enabled(void); pisa_perf_set * pisa_perf_create(int num);