]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
<arma> you should make r and i and use r for r and i for i
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Apr 2004 02:36:37 +0000 (02:36 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Apr 2004 02:36:37 +0000 (02:36 +0000)
svn:r1603

src/or/rendclient.c

index fb4543aedd2f3240e50788a35f031e437caba584..2fd0567b975e1b4f24923beb0e4c8d4058714112 100644 (file)
@@ -143,7 +143,7 @@ int
 rend_client_introduction_acked(circuit_t *circ,
                                const char *request, int request_len)
 {
-  int i;
+  int i, r;
   rend_cache_entry_t *ent;
   char *nickname;
 
@@ -170,12 +170,12 @@ rend_client_introduction_acked(circuit_t *circ,
      *
      * Or re-fetch the service descriptor? Hm....
      */
-    i = rend_cache_lookup_entry(circ->rend_query, &ent);
-    if (i<0) {
+    r = rend_cache_lookup_entry(circ->rend_query, &ent);
+    if (r<0) {
       log_fn(LOG_WARN, "Malformed service ID '%s'", circ->rend_query);
       return -1;
     }
-    if (i>0) {
+    if (r>0) {
       /* Okay, we found the right service desc.  First, remove this intro point
        * from the parsed descriptor (if it's still there!)
        */