[or-cvs] Pass with -Wstrict-prototypes

Nick Mathewson nickm at seul.org
Wed Oct 27 18:16:39 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv7122/src/or

Modified Files:
	or.h test.c 
Log Message:
Pass with -Wstrict-prototypes

Index: or.h
===================================================================
RCS file: /home/or/cvsroot/src/or/or.h,v
retrieving revision 1.445
retrieving revision 1.446
diff -u -d -r1.445 -r1.446
--- or.h	27 Oct 2004 00:48:51 -0000	1.445
+++ or.h	27 Oct 2004 18:16:37 -0000	1.446
@@ -948,7 +948,7 @@
 
 /********************************* buffers.c ***************************/
 
-buf_t *buf_new();
+buf_t *buf_new(void);
 buf_t *buf_new_with_capacity(size_t size);
 void buf_free(buf_t *buf);
 void buf_clear(buf_t *buf);
@@ -1207,11 +1207,11 @@
 int dirserv_add_own_fingerprint(const char *nickname, crypto_pk_env_t *pk);
 int dirserv_parse_fingerprint_file(const char *fname);
 int dirserv_router_fingerprint_is_known(const routerinfo_t *router);
-void dirserv_free_fingerprint_list();
+void dirserv_free_fingerprint_list(void);
 const char *dirserv_get_nickname_by_digest(const char *digest);
 int dirserv_add_descriptor(const char **desc);
 int dirserv_load_from_directory_string(const char *dir);
-void dirserv_free_descriptors();
+void dirserv_free_descriptors(void);
 void dirserv_remove_old_servers(int age);
 int dirserv_dump_directory_to_string(char *s, size_t maxlen,
                                      crypto_pk_env_t *private_key);

Index: test.c
===================================================================
RCS file: /home/or/cvsroot/src/or/test.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- test.c	27 Oct 2004 06:37:34 -0000	1.135
+++ test.c	27 Oct 2004 18:16:37 -0000	1.136
@@ -44,7 +44,7 @@
 static char temp_dir[256];
 
 void
-setup_directory()
+setup_directory(void)
 {
   static int is_setup = 0;
   int r;
@@ -74,7 +74,7 @@
 }
 
 void
-remove_directory()
+remove_directory(void)
 {
   DIR *dirp;
   struct dirent *de;
@@ -98,7 +98,7 @@
 }
 
 void
-test_buffers() {
+test_buffers(void) {
 #define MAX_BUF_SIZE 1024*1024
   char str[256];
   char str2[256];
@@ -224,7 +224,7 @@
 }
 
 void
-test_crypto_dh()
+test_crypto_dh(void)
 {
   crypto_dh_env_t *dh1, *dh2;
   char p1[DH_BYTES];
@@ -259,7 +259,7 @@
 }
 
 void
-test_crypto()
+test_crypto(void)
 {
   crypto_cipher_env_t *env1, *env2;
   crypto_pk_env_t *pk1, *pk2;
@@ -495,7 +495,7 @@
 }
 
 void
-test_util() {
+test_util(void) {
   struct timeval start, end;
   struct tm a_time;
   smartlist_t *sl;
@@ -695,7 +695,8 @@
 }
 
 void
-test_gzip() {
+test_gzip(void)
+{
   char *buf1, *buf2=NULL, *buf3=NULL;
   size_t len1, len2;
 
@@ -740,7 +741,8 @@
   return (void*)(v*v);
 }
 
-void test_strmap() {
+void test_strmap(void)
+{
   strmap_t *map;
   strmap_iter_t *iter;
   const char *k;
@@ -813,7 +815,8 @@
   strmap_free(map,NULL);
 }
 
-void test_onion() {
+void test_onion(void)
+{
 #if 0
   char **names;
   int i,num;
@@ -831,7 +834,8 @@
 }
 
 void
-test_onion_handshake() {
+test_onion_handshake(void)
+{
   /* client-side */
   crypto_dh_env_t *c_dh = NULL;
   char c_buf[ONIONSKIN_CHALLENGE_LEN];
@@ -876,7 +880,7 @@
 int is_obsolete_version(const char *myversion, const char *start);
 
 void
-test_dir_format()
+test_dir_format(void)
 {
   char buf[8192], buf2[8192];
   char platform[256];
@@ -1124,7 +1128,7 @@
 
 }
 
-void test_rend_fns()
+void test_rend_fns(void)
 {
   char address1[] = "fooaddress.onion";
   char address2[] = "aaaaaaaaaaaaaaaa.onion";



More information about the tor-commits mailing list