]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
check-spaces fixes for test_router.c
authorNick Mathewson <nickm@torproject.org>
Mon, 3 Feb 2014 18:00:15 +0000 (13:00 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 3 Feb 2014 18:00:15 +0000 (13:00 -0500)
src/test/test_router.c

index c13ccc643e0b0f147a74cd33cef3be3986e456f4..5e816564d9004d9e58f6eaea6cf1a7e96818fee1 100644 (file)
 #include "router.h"
 #include "test.h"
 
-
 /** Tese the case when node_get_by_id() returns NULL, node_describe_by_id
  * should return the base 16 encoding of the id.
  */
 static void
 test_node_describe_by_id_null_node(void *arg)
 {
+  const char ID[] = "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"
+                    "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA";
   (void) arg;
 
-  #define ID "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"
-
   /* make sure node_get_by_id returns NULL */
   test_assert(!node_get_by_id(ID));
   test_streq(node_describe_by_id(ID),
               "$AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
-done:
+ done:
   return;
 }