bits is never null when we call ot. Add an assert to that effect and
remove test for NULL. CID: 270774
This commit is contained in:
parent
6dc0176690
commit
65273b4808
@ -32,6 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user