summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vscanf.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-04-23 14:36:44 +0000
committeremaste <emaste@FreeBSD.org>2013-04-23 14:36:44 +0000
commited68431e9eb5f5d79436afe779c4564cc625c69e (patch)
treeeee3d4211d69ff36f950fb608985ae69d9c4c4e1 /lib/libc/stdio/vscanf.c
parent1f1bd98319ba57830e89bfdbf57da9dfa3da9084 (diff)
downloadFreeBSD-src-ed68431e9eb5f5d79436afe779c4564cc625c69e.zip
FreeBSD-src-ed68431e9eb5f5d79436afe779c4564cc625c69e.tar.gz
Convert libc/stdio from K&R to ANSI C
And add '__restrict' where it appeared in the header prototypes
Diffstat (limited to 'lib/libc/stdio/vscanf.c')
-rw-r--r--lib/libc/stdio/vscanf.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libc/stdio/vscanf.c b/lib/libc/stdio/vscanf.c
index f952c01..8729c9c 100644
--- a/lib/libc/stdio/vscanf.c
+++ b/lib/libc/stdio/vscanf.c
@@ -49,10 +49,7 @@ __FBSDID("$FreeBSD$");
#include "xlocale_private.h"
int
-vscanf_l(locale, fmt, ap)
- locale_t locale;
- const char * __restrict fmt;
- __va_list ap;
+vscanf_l(locale_t locale, const char * __restrict fmt, __va_list ap)
{
int retval;
FIX_LOCALE(locale);
@@ -63,9 +60,7 @@ vscanf_l(locale, fmt, ap)
return (retval);
}
int
-vscanf(fmt, ap)
- const char * __restrict fmt;
- __va_list ap;
+vscanf(const char * __restrict fmt, __va_list ap)
{
return vscanf_l(__get_locale(), fmt, ap);
}
OpenPOWER on IntegriCloud