summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fscanf.c
diff options
context:
space:
mode:
authorpat <pat@openbsd.org>2005-03-31 18:36:29 +0000
committerpat <pat@openbsd.org>2005-03-31 18:36:29 +0000
commit9e8959400bf6323a88dbfd54158c26492eb3f44c (patch)
treeda30438c107274038a96aae8ef672007e5b2ae33 /lib/libc/stdio/fscanf.c
parent+YFLAGS= (diff)
downloadwireguard-openbsd-9e8959400bf6323a88dbfd54158c26492eb3f44c.tar.xz
wireguard-openbsd-9e8959400bf6323a88dbfd54158c26492eb3f44c.zip
make sure the implementation matches the prototype..
char const * -> const char * ok otto@ deraadt@
Diffstat (limited to 'lib/libc/stdio/fscanf.c')
-rw-r--r--lib/libc/stdio/fscanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fscanf.c b/lib/libc/stdio/fscanf.c
index c56c54ae928..2094d0a769b 100644
--- a/lib/libc/stdio/fscanf.c
+++ b/lib/libc/stdio/fscanf.c
@@ -31,14 +31,14 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: fscanf.c,v 1.6 2003/06/02 20:18:37 millert Exp $";
+static char rcsid[] = "$OpenBSD: fscanf.c,v 1.7 2005/03/31 18:36:29 pat Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#include <stdarg.h>
int
-fscanf(FILE *fp, char const *fmt, ...)
+fscanf(FILE *fp, const char *fmt, ...)
{
int ret;
va_list ap;