aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlsalzman <[email protected]>2013-03-19 11:26:54 +0200
committerlsalzman <[email protected]>2013-03-19 11:26:54 +0200
commitdb685c3d4f58c63c7a0d3fb8c3e20e0a69eeea70 (patch)
tree00a9bd1234bad0df8ed74ce1125bbeba33d2ad5a
parenteb7126c66225d04aff084e19274e15a43db884d4 (diff)
downloadenet-db685c3d4f58c63c7a0d3fb8c3e20e0a69eeea70.tar.gz
enet-db685c3d4f58c63c7a0d3fb8c3e20e0a69eeea70.zip
only use perror if ENET_DEBUG defined
-rw-r--r--protocol.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocol.c b/protocol.c
index d6cc33a..bc92995 100644
--- a/protocol.c
+++ b/protocol.c
@@ -1804,7 +1804,9 @@ enet_host_service (ENetHost * host, ENetEvent * event, enet_uint32 timeout)
return 1;
case -1:
+#ifdef ENET_DEBUG
perror ("Error dispatching incoming packets");
+#endif
return -1;
@@ -1828,7 +1830,9 @@ enet_host_service (ENetHost * host, ENetEvent * event, enet_uint32 timeout)
return 1;
case -1:
+#ifdef ENET_DEBUG
perror ("Error sending outgoing packets");
+#endif
return -1;
@@ -1842,7 +1846,9 @@ enet_host_service (ENetHost * host, ENetEvent * event, enet_uint32 timeout)
return 1;
case -1:
+#ifdef ENET_DEBUG
perror ("Error receiving incoming packets");
+#endif
return -1;
@@ -1856,7 +1862,9 @@ enet_host_service (ENetHost * host, ENetEvent * event, enet_uint32 timeout)
return 1;
case -1:
+#ifdef ENET_DEBUG
perror ("Error sending outgoing packets");
+#endif
return -1;
@@ -1872,7 +1880,9 @@ enet_host_service (ENetHost * host, ENetEvent * event, enet_uint32 timeout)
return 1;
case -1:
+#ifdef ENET_DEBUG
perror ("Error dispatching incoming packets");
+#endif
return -1;