aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-06 17:47:39 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-06 17:47:39 +0000
commit602eb94e5265fd6f6bfb80cf9a7ad39cf1842319 (patch)
tree4e3f0445d84073865060e6ed03ee0577b0105744
parent06ed40f3f8f767f491ce6766122549a2161cb097 (diff)
downloadslirp-602eb94e5265fd6f6bfb80cf9a7ad39cf1842319.zip
slirp-602eb94e5265fd6f6bfb80cf9a7ad39cf1842319.tar.gz
slirp-602eb94e5265fd6f6bfb80cf9a7ad39cf1842319.tar.bz2
Fix most warnings that would be caused by gcc flag -Wundef
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5173 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--ip_icmp.c4
-rw-r--r--slirp.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ip_icmp.c b/ip_icmp.c
index bf7c855..cd38ab0 100644
--- a/ip_icmp.c
+++ b/ip_icmp.c
@@ -229,7 +229,7 @@ char *message;
if (!msrc)
goto end_error;
ip = mtod(msrc, struct ip *);
-#if DEBUG
+#ifdef DEBUG
{
char bufa[20], bufb[20];
strcpy(bufa, inet_ntoa(ip->ip_src));
@@ -294,7 +294,7 @@ char *message;
HTONS(icp->icmp_ip.ip_id);
HTONS(icp->icmp_ip.ip_off);
-#if DEBUG
+#ifdef DEBUG
if (message) { /* DEBUG : append message to ICMP packet */
int message_len;
char *cpnt;
diff --git a/slirp.h b/slirp.h
index 7ae0bb9..0569533 100644
--- a/slirp.h
+++ b/slirp.h
@@ -105,7 +105,7 @@ typedef unsigned int u_int32_t;
#include <sys/time.h>
#include <time.h>
#else
-#if HAVE_SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>