summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/freopen.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/freopen.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/freopen.c')
-rw-r--r--lib/libc/stdio/freopen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c
index 7d8feca..dc5508d 100644
--- a/lib/libc/stdio/freopen.c
+++ b/lib/libc/stdio/freopen.c
@@ -55,10 +55,8 @@ __FBSDID("$FreeBSD$");
* all possible, no matter what.
*/
FILE *
-freopen(file, mode, fp)
- const char * __restrict file;
- const char * __restrict mode;
- FILE *fp;
+freopen(const char * __restrict file, const char * __restrict mode,
+ FILE * __restrict fp)
{
int f;
int dflags, flags, isopen, oflags, sverrno, wantfd;
OpenPOWER on IntegriCloud