summaryrefslogtreecommitdiff
path: root/slirp
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
commit205ebc98285b56088a04a1cbda0b99f8a70b983c (patch)
tree0b391e1d33f6f47a90f7c3fa8e63e863ee9f1b8e /slirp
parentd5f838634c05ab12820c84f323f78133ce698fbf (diff)
downloadqemu-205ebc98285b56088a04a1cbda0b99f8a70b983c.tar.gz
qemu-205ebc98285b56088a04a1cbda0b99f8a70b983c.tar.bz2
qemu-205ebc98285b56088a04a1cbda0b99f8a70b983c.zip
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
Diffstat (limited to 'slirp')
-rw-r--r--slirp/ip_icmp.c4
-rw-r--r--slirp/slirp.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/slirp/ip_icmp.c b/slirp/ip_icmp.c
index d1da0a2fcd..53566c1f71 100644
--- a/slirp/ip_icmp.c
+++ b/slirp/ip_icmp.c
@@ -228,7 +228,7 @@ icmp_error(msrc, type, code, minsize, message)
/* check msrc */
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));
strcpy(bufb, inet_ntoa(ip->ip_dst));
@@ -285,7 +285,7 @@ icmp_error(msrc, type, code, minsize, 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/slirp.h b/slirp/slirp.h
index 9ee240b775..d49be12074 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -103,7 +103,7 @@ typedef unsigned char u_int8_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>