Ver código fonte

get the compiler to stop complaining about two string literals (one a macro) next to each other without an intervening space

Grant Limberg 9 anos atrás
pai
commit
75f8ee1b9c
2 arquivos alterados com 3 adições e 3 exclusões
  1. 2 2
      node/Topology.cpp
  2. 1 1
      node/Topology.hpp

+ 2 - 2
node/Topology.cpp

@@ -128,8 +128,8 @@ SharedPtr<Peer> Topology::addPeer(const SharedPtr<Peer> &peer)
 #ifdef ZT_TRACE
 	if ((!peer)||(peer->address() == RR->identity.address())) {
 		if (!peer)
-			fprintf(stderr,"FATAL BUG: addPeer() caught attempt to add NULL peer"ZT_EOL_S);
-		else fprintf(stderr,"FATAL BUG: addPeer() caught attempt to add peer for self"ZT_EOL_S);
+			fprintf(stderr,"FATAL BUG: addPeer() caught attempt to add NULL peer" ZT_EOL_S);
+		else fprintf(stderr,"FATAL BUG: addPeer() caught attempt to add peer for self" ZT_EOL_S);
 		abort();
 	}
 #endif

+ 1 - 1
node/Topology.hpp

@@ -239,7 +239,7 @@ public:
 		while (i.next(a,p)) {
 #ifdef ZT_TRACE
 			if (!(*p)) {
-				fprintf(stderr,"FATAL BUG: eachPeer() caught NULL peer for %s -- peer pointers in Topology should NEVER be NULL"ZT_EOL_S,a->toString().c_str());
+				fprintf(stderr,"FATAL BUG: eachPeer() caught NULL peer for %s -- peer pointers in Topology should NEVER be NULL" ZT_EOL_S,a->toString().c_str());
 				abort();
 			}
 #endif