diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-06 17:47:39 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-06 17:47:39 +0000 |
commit | 602eb94e5265fd6f6bfb80cf9a7ad39cf1842319 (patch) | |
tree | 4e3f0445d84073865060e6ed03ee0577b0105744 | |
parent | 06ed40f3f8f767f491ce6766122549a2161cb097 (diff) | |
download | slirp-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.c | 4 | ||||
-rw-r--r-- | slirp.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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; @@ -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> |