diff --git a/usr.sbin/ifmcstat/printb.c b/usr.sbin/ifmcstat/printb.c index 76b063fcb9e9..9481a0dc1bff 100644 --- a/usr.sbin/ifmcstat/printb.c +++ b/usr.sbin/ifmcstat/printb.c @@ -32,6 +32,7 @@ #include __FBSDID("$FreeBSD$"); +#include #include /* @@ -43,7 +44,8 @@ printb(const char *s, unsigned int v, const char *bits) int i, any = 0; char c; - if (bits && *bits == 8) + assert(bits != NULL); + if (*bits == 8) printf("%s=%o", s, v); else printf("%s=%x", s, v);