Skip to content

Commit

Permalink
Change DPRINTF() to do{}while(0) to avoid compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Jes Sorensen <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
Jes Sorensen authored and blueswirl committed Sep 4, 2010
1 parent 2116eff commit 7390cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slirp/bootp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7390cdf

Please sign in to comment.