projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2116eff
)
Change DPRINTF() to do{}while(0) to avoid compiler warning
author
Jes Sorensen
<Jes.Sorensen@redhat.com>
Tue, 31 Aug 2010 07:30:37 +0000
(09:30 +0200)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 4 Sep 2010 09:45:54 +0000
(09:45 +0000)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
slirp/bootp.c
patch
|
blob
|
history
diff --git
a/slirp/bootp.c
b/slirp/bootp.c
index 3e4e8810be304937cddea595cde600d980e5a906..41460ffaa59d457052dbe8a88b21129d0b5b1432 100644
(file)
--- 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,