chiark / gitweb /
server/{admin,peer}.c: Fix build failures when tracing is disabled.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 11 Mar 2014 14:32:44 +0000 (14:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 11 Mar 2014 15:30:39 +0000 (15:30 +0000)
I don't check this often enough.

server/admin.c
server/peer.c

index 487010e..16ab8a3 100644 (file)
@@ -51,7 +51,9 @@ unsigned tr_flags = 0;
 #endif
 
 static const trace_opt w_opts[] = {
+#ifndef NTRACE
   { 't',       AF_TRACE,       "trace messages" },
+#endif
   { 'n',       AF_NOTE,        "asynchronous notifications" },
   { 'w',       AF_WARN,        "warnings" },
   { 'A',       AF_ALLMSGS,     "all of the above" },
index 49275ac..f4d8066 100644 (file)
@@ -206,7 +206,7 @@ static int p_decrypt(peer **pp, addr *a, size_t n,
     }
     T( trace(T_PEER, "peer: failed to decrypt: try other mobile peers..."); )
   } else if (nmobile)
-    T( trace(T_PEER, "peer: unknown source: trying mobile peers..."); )
+    T( trace(T_PEER, "peer: unknown source: trying mobile peers...") );
   else {
     p = 0;
     goto searched;