summaryrefslogtreecommitdiffstats
path: root/slirp
diff options
context:
space:
mode:
authorblueswir12008-09-06 19:47:39 +0200
committerblueswir12008-09-06 19:47:39 +0200
commiteb38c52c2a6df76928c1a4760bc87d21b256e22a (patch)
tree0b391e1d33f6f47a90f7c3fa8e63e863ee9f1b8e /slirp
parentSome little fixes on QEMU (diff)
downloadqemu-eb38c52c2a6df76928c1a4760bc87d21b256e22a.tar.gz
qemu-eb38c52c2a6df76928c1a4760bc87d21b256e22a.tar.xz
qemu-eb38c52c2a6df76928c1a4760bc87d21b256e22a.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>