*/
#ifdef DEBUG
-#define DPRINTF(_lvl_, _arg_) \
- if (debug >= (_lvl_)) \
- printf _arg_;
+#define DPRINTF(_lvl_, _arg_) \
+ do { \
+ if (debug >= (_lvl_)) \
+ printf _arg_; \
+ } while (0)
#else
-#define DPRINTF(_lvl_, _arg_)
+#define DPRINTF(_lvl_, _arg_) do {} while (0)
#endif
#endif
static void print_interface P((struct interface *, char *, char *));
#define DPRINT_INTERFACE(_LVL_, _ARGS_) do { if (debug >= (_LVL_)) { print_interface _ARGS_; } } while (0)
#else
-#define DPRINT_INTERFACE(_LVL_, _ARGS_)
+#define DPRINT_INTERFACE(_LVL_, _ARGS_) do {} while (0)
#endif
typedef struct vsock vsock_t;
struct interface *iface;
DPRINTF(4, ("Finding interface for addr %s in list of addresses\n",
- stoa(addr));)
+ stoa(addr)));
memset(&saddr, 0, sizeof(saddr));
saddr.ss_family = addr->ss_family;