]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix an unused function warning
authorNick Mathewson <nickm@torproject.org>
Mon, 3 Jan 2005 20:03:49 +0000 (20:03 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 3 Jan 2005 20:03:49 +0000 (20:03 +0000)
svn:r3255

src/or/command.c

index 0096f28b09b9f2b7796449309068171e5bff797a..475bb23c944b217fd41651d268541305db9fa5e3 100644 (file)
@@ -31,6 +31,7 @@ static void command_process_created_cell(cell_t *cell, connection_t *conn);
 static void command_process_relay_cell(cell_t *cell, connection_t *conn);
 static void command_process_destroy_cell(cell_t *cell, connection_t *conn);
 
+#ifdef KEEP_TIMING_STATS
 /** This is a wrapper function around the actual function that processes the
  * <b>cell</b> that just arrived on <b>conn</b>. Increment <b>*time</b>
  * by the number of microseconds used by the call to <b>*func(cell, conn)</b>.
@@ -56,6 +57,7 @@ static void command_time_process_cell(cell_t *cell, connection_t *conn, int *tim
   }
   *time += time_passed;
 }
+#endif
 
 /** Process a <b>cell</b> that was just received on <b>conn</b>. Keep internal
  * statistics about how many of each cell we've processed so far