aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2010-08-31 09:30:37 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-09-04 09:45:54 +0000
commit5d30138a3a2c44ea80964f4a5b2e406b032f41f0 (patch)
treed6e56300495ebe0ce952f38c2cdb3eaf07d3d4f7
parent01d0c69458a527ac4a8249fac8a1316a6e90c493 (diff)
downloadslirp-5d30138a3a2c44ea80964f4a5b2e406b032f41f0.zip
slirp-5d30138a3a2c44ea80964f4a5b2e406b032f41f0.tar.gz
slirp-5d30138a3a2c44ea80964f4a5b2e406b032f41f0.tar.bz2
Change DPRINTF() to do{}while(0) to avoid compiler warning
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--bootp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootp.c b/bootp.c
index 70b6e9c..556768c 100644
--- a/bootp.c
+++ b/bootp.c
@@ -38,7 +38,9 @@ static const uint8_t rfc1533_cookie[] = { RFC1533_COOKIE };
} \
while (0)
#else
-#define DPRINTF(fmt, ...)
+#define DPRINTF(fmt, ...) \
+ do { \
+ } while (0)
#endif
static BOOTPClient *get_new_addr(Slirp *slirp, struct in_addr *paddr,