Module Name: src
Committed By: christos
Date: Wed Mar 26 18:02:24 UTC 2014
Modified Files:
src/sys/lib/libsa: Makefile stand.h
Removed Files:
src/sys/lib/libsa: sprintf.c vsprintf.c
Log Message:
Remove {v,}sprintf
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/lib/libsa/Makefile
cvs rdiff -u -r1.5 -r0 src/sys/lib/libsa/sprintf.c \
src/sys/lib/libsa/vsprintf.c
cvs rdiff -u -r1.77 -r1.78 src/sys/lib/libsa/stand.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/Makefile
diff -u src/sys/lib/libsa/Makefile:1.80 src/sys/lib/libsa/Makefile:1.81
--- src/sys/lib/libsa/Makefile:1.80 Sun Jan 12 10:19:57 2014
+++ src/sys/lib/libsa/Makefile Wed Mar 26 14:02:24 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.80 2014/01/12 15:19:57 tsutsui Exp $
+# $NetBSD: Makefile,v 1.81 2014/03/26 18:02:24 christos Exp $
LIB= sa
LIBISPRIVATE?= yes
@@ -25,8 +25,8 @@ CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAM
# stand routines
SRCS+= alloc.c errno.c exit.c files.c \
getfile.c gets.c globals.c \
- panic.c printf.c qsort.c snprintf.c sprintf.c strerror.c \
- subr_prf.c twiddle.c vsprintf.c checkpasswd.c
+ panic.c printf.c qsort.c snprintf.c strerror.c \
+ subr_prf.c twiddle.c checkpasswd.c
# string routines
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
Index: src/sys/lib/libsa/stand.h
diff -u src/sys/lib/libsa/stand.h:1.77 src/sys/lib/libsa/stand.h:1.78
--- src/sys/lib/libsa/stand.h:1.77 Sun Jan 5 16:38:25 2014
+++ src/sys/lib/libsa/stand.h Wed Mar 26 14:02:24 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: stand.h,v 1.77 2014/01/05 21:38:25 jakllsch Exp $ */
+/* $NetBSD: stand.h,v 1.78 2014/03/26 18:02:24 christos Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -80,9 +80,7 @@
#define gets libsa_gets
#define printf libsa_printf
#define putchar libsa_putchar
-#define sprintf libsa_sprintf
#define vprintf libsa_vprintf
-#define vsprintf libsa_vsprintf
#endif
struct open_file;
@@ -252,14 +250,10 @@ int dkcksum(const struct disklabel *);
void printf(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
-int sprintf(char *, const char *, ...)
- __attribute__((__format__(__printf__, 2, 3)));
int snprintf(char *, size_t, const char *, ...)
__attribute__((__format__(__printf__, 3, 4)));
void vprintf(const char *, va_list)
__attribute__((__format__(__printf__, 1, 0)));
-int vsprintf(char *, const char *, va_list)
- __attribute__((__format__(__printf__, 2, 0)));
int vsnprintf(char *, size_t, const char *, va_list)
__attribute__((__format__(__printf__, 3, 0)));
void twiddle(void);