summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-09-25 04:06:37 +0000
committermike <mike@FreeBSD.org>2002-09-25 04:06:37 +0000
commit86a758e51be945d9e690ee0802a21bf9a667b4e8 (patch)
tree2295edf76df9065e84ea0b415c9c13ecf434f1fa /lib/libstand
parentb9155304da025f935d34f191093267f40e40cdd2 (diff)
downloadFreeBSD-src-86a758e51be945d9e690ee0802a21bf9a667b4e8.zip
FreeBSD-src-86a758e51be945d9e690ee0802a21bf9a667b4e8.tar.gz
Use the standardized CHAR_BIT constant instead of NBBY in userland.
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/printf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libstand/printf.c b/lib/libstand/printf.c
index 6afcbfd..5f1bedc 100644
--- a/lib/libstand/printf.c
+++ b/lib/libstand/printf.c
@@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$");
*/
#include <sys/types.h>
+#include <limits.h>
#include <string.h>
#include "stand.h"
@@ -109,7 +110,7 @@ ksprintn(ul, base, lenp)
u_long ul;
int base, *lenp;
{ /* A long in base 8, plus NULL. */
- static char buf[sizeof(long) * NBBY / 3 + 2];
+ static char buf[sizeof(long) * CHAR_BIT / 3 + 2];
char *p;
p = buf;
OpenPOWER on IntegriCloud