[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Remove false warnings from printf checks
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv2108/src/or
Modified Files:
circuit.c main.c onion.c test.c
Log Message:
Remove false warnings from printf checks
Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- circuit.c 17 Jun 2003 22:18:25 -0000 1.52
+++ circuit.c 21 Jun 2003 19:03:22 -0000 1.53
@@ -473,7 +473,7 @@
assert(circ);
if(options.APPort) {
youngest = circuit_get_newest_ap();
- log_fn(LOG_DEBUG,"youngest %d, circ %d.",youngest, (int)circ);
+ log_fn(LOG_DEBUG,"youngest %d, circ %d.",(int)youngest, (int)circ);
}
circuit_remove(circ);
if(circ->n_conn)
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- main.c 18 Jun 2003 05:52:32 -0000 1.70
+++ main.c 21 Jun 2003 19:03:22 -0000 1.71
@@ -792,7 +792,7 @@
if(getconfig(argc,argv,&options))
exit(1);
- log(options.loglevel,NULL); /* assign logging severity level from options */
+ log_set_severity(options.loglevel); /* assign logging severity level from options */
if(options.Daemon)
daemonize();
Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- onion.c 14 Jun 2003 01:34:39 -0000 1.57
+++ onion.c 21 Jun 2003 19:03:22 -0000 1.58
@@ -329,7 +329,7 @@
log(LOG_DEBUG,"onion_generate_cpath(): %u : %s:%u, %u/%u",routelen-i,
inet_ntoa(netaddr),
(rarray[route[i]])->or_port,
- (rarray[route[i]])->pkey,
+ (int) (rarray[route[i]])->pkey,
crypto_pk_keysize((rarray[route[i]])->pkey));
}
Index: test.c
===================================================================
RCS file: /home/or/cvsroot/src/or/test.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- test.c 20 Jun 2003 08:17:25 -0000 1.26
+++ test.c 21 Jun 2003 19:03:22 -0000 1.27
@@ -594,7 +594,7 @@
if(getconfig(c,v,&options))
exit(1);
#endif
- log(LOG_ERR,NULL); /* make logging quieter */
+ log_set_severity(LOG_ERR); /* make logging quieter */
crypto_seed_rng();