aboutsummaryrefslogtreecommitdiff
path: root/slirp
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
commit7390cdfbf768617b80f570e17aa2e6c1c7b92592 (patch)
treec9f5cfca089c52288e2484e41153d401da42f9ba /slirp
parent2116eff93c57d3a9e5d0d3bc9e359d124e762a7d (diff)
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>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/bootp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/bootp.c b/slirp/bootp.c
index 3e4e8810be..41460ffaa5 100644
--- a/slirp/bootp.c
+++ b/slirp/bootp.c
@@ -33,7 +33,7 @@ static const uint8_t rfc1533_cookie[] = { RFC1533_COOKIE };
#define DPRINTF(fmt, ...) \
do if (slirp_debug & DBG_CALL) { fprintf(dfd, fmt, ## __VA_ARGS__); fflush(dfd); } while (0)
#else
-#define DPRINTF(fmt, ...)
+#define DPRINTF(fmt, ...) do{}while(0)
#endif
static BOOTPClient *get_new_addr(Slirp *slirp, struct in_addr *paddr,