aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/ntp/ntpd/ntp_io.c2
-rw-r--r--sys/sys/queue.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ntp/ntpd/ntp_io.c b/contrib/ntp/ntpd/ntp_io.c
index 9d79fe493d9b..12a61ccb1d2c 100644
--- a/contrib/ntp/ntpd/ntp_io.c
+++ b/contrib/ntp/ntpd/ntp_io.c
@@ -1921,7 +1921,7 @@ update_interfaces(
}
else {
DPRINT_INTERFACE(3,
- (ep, "updating ", " new - FAILED"));
+ (ep2, "updating ", " new - FAILED"));
msyslog(LOG_ERR,
"cannot bind address %s",
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index 0b1e1f9fba55..31a220bcdcc0 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -356,7 +356,7 @@ struct { \
#define STAILQ_ASSERT_EMPTY(head) do { \
if (!STAILQ_EMPTY((head))) \
panic("stailq %p is not empty", (head)); \
-}
+} while (0)
/*
* QMD_STAILQ_CHECK_TAIL(STAILQ_HEAD *head)
@@ -370,7 +370,7 @@ struct { \
} while (0)
#else
#define QMD_STAILQ_CHECK_EMPTY(head)
-#define STAILQ_ASSERT_EMPTY(head)
+#define STAILQ_ASSERT_EMPTY(head)
#define QMD_STAILQ_CHECK_TAIL(head)
#endif /* (_KERNEL && INVARIANTS) */