[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix in warning fix



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

Modified Files:
	rephist.c 
Log Message:
Fix in warning fix

Index: rephist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rephist.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- rephist.c	27 Oct 2004 21:30:47 -0000	1.35
+++ rephist.c	27 Oct 2004 21:54:44 -0000	1.36
@@ -237,7 +237,7 @@
   double uptime;
   char buffer[2048];
   size_t len;
-  int r;
+  int ret;
   unsigned long upt, downt;
   routerinfo_t *r;
 
@@ -281,13 +281,13 @@
 
         link_history = (link_history_t*) link_history_p;
         
-        r = tor_snprintf(buffer+len, 2048-len, "%s(%ld/%ld); ", name2,
+        ret = tor_snprintf(buffer+len, 2048-len, "%s(%ld/%ld); ", name2,
                         link_history->n_extend_ok,
                         link_history->n_extend_ok+link_history->n_extend_fail);
-        if (r<0)
+        if (ret<0)
           break;
         else
-          len += r;
+          len += ret;
       }
       log(severity, "%s", buffer);
     }