mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327580
|
@ -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 a new issue