From 0e0146f4ca37eec8c1d0ae44892dfa75d54f4f7d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 24 May 2002 01:53:59 +0000 Subject: remove another unneeded function --- libexec/ld.so/dl_printf.c | 12 ++---------- 1 file 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; } -- cgit v1.2.3