diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-24 01:53:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-24 01:53:59 +0000 |
commit | 0e0146f4ca37eec8c1d0ae44892dfa75d54f4f7d (patch) | |
tree | 219e6dd0980b2f0ab57b4590ae811b4a892ed921 /libexec/ld.so | |
parent | 73f8147f0e6cba6b50f600f34c483349a23b40a4 (diff) |
remove another unneeded function
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/dl_printf.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libexec/ld.so/dl_printf.c b/libexec/ld.so/dl_printf.c index 228269b9ad6..54bc28d05a0 100644 --- a/libexec/ld.so/dl_printf.c +++ b/libexec/ld.so/dl_printf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dl_printf.c,v 1.6 2002/05/23 22:13:46 deraadt Exp $ */ +/* $OpenBSD: dl_printf.c,v 1.7 2002/05/24 01:53:58 deraadt Exp $ */ /*- * Copyright (c) 1993 @@ -67,8 +67,6 @@ static void kprintn(void (*)(int), u_long, int); static void kdoprnt(void (*)(int), const char *, va_list); static void putchar(int); -static void sputchar(int); -static char *sbuf; static void putchar(int c) @@ -78,12 +76,6 @@ putchar(int c) _dl_write(2, &b, 1); } -static void -sputchar(int c) -{ - *sbuf++ = c; -} - void _dl_printf(const char *fmt, ...) { @@ -180,7 +172,7 @@ reswitch: { int l = 28; ul = lflag ? va_arg(ap, u_long) : va_arg(ap, u_int); - while(l >= 0) { + while (l >= 0) { put("0123456789abcdef"[(ul >> l) & 0xf]); l -= 4; } |