]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove two extrneous semicolons in dirserv.c
authorNick Mathewson <nickm@torproject.org>
Wed, 16 Jan 2013 21:49:39 +0000 (16:49 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 16 Jan 2013 21:49:39 +0000 (16:49 -0500)
In 6fbdf635 we added a couple of statements like:
    if (test) {
       ...
    };

The extraneous semicolons there get flagged as worrisome empty
statements by the cparser library, so let's fix them.

Patch by Christian Grothoff; fixes bug 7115.

changes/bug7115 [new file with mode: 0644]
src/or/dirserv.c

diff --git a/changes/bug7115 b/changes/bug7115
new file mode 100644 (file)
index 0000000..976b9a9
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (portability)
+    - Remove a couple of extraneous semicolos that were upsetting the
+      cparser library. Patch by Christian Grothoff. Fixes bug 7115;
+      bugfix on 0.2.2.1-alpha.
index 2351386b30616aa8b679bc76464a164066f41680..8af848ca02f84646f3becdc8f4c67a80f8a74eb2 100644 (file)
@@ -2181,7 +2181,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
             "(wanted descriptor %s).",
             id, dd);
         return -1;
-      };
+      }
 
       /* This assert can fire for the control port, because
        * it can request NS documents before all descriptors
@@ -2205,7 +2205,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
         tor_assert(tor_memeq(desc->cache_info.signed_descriptor_digest,
               rs->descriptor_digest,
               DIGEST_LEN));
-      };
+      }
     }
 
     if (format == NS_CONTROL_PORT && rs->has_bandwidth) {