diff options
author | emaste <emaste@FreeBSD.org> | 2013-04-23 14:36:44 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-04-23 14:36:44 +0000 |
commit | ed68431e9eb5f5d79436afe779c4564cc625c69e (patch) | |
tree | eee3d4211d69ff36f950fb608985ae69d9c4c4e1 /lib/libc/stdio/fseek.c | |
parent | 1f1bd98319ba57830e89bfdbf57da9dfa3da9084 (diff) | |
download | FreeBSD-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/fseek.c')
-rw-r--r-- | lib/libc/stdio/fseek.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index 55ab657..2897eeb 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -51,10 +51,7 @@ __FBSDID("$FreeBSD$"); #define POS_ERR (-(fpos_t)1) int -fseek(fp, offset, whence) - FILE *fp; - long offset; - int whence; +fseek(FILE *fp, long offset, int whence) { int ret; int serrno = errno; @@ -72,10 +69,7 @@ fseek(fp, offset, whence) } int -fseeko(fp, offset, whence) - FILE *fp; - off_t offset; - int whence; +fseeko(FILE *fp, off_t offset, int whence) { int ret; int serrno = errno; @@ -97,11 +91,7 @@ fseeko(fp, offset, whence) * `Whence' must be one of the three SEEK_* macros. */ int -_fseeko(fp, offset, whence, ltest) - FILE *fp; - off_t offset; - int whence; - int ltest; +_fseeko(FILE *fp, off_t offset, int whence, int ltest) { fpos_t (*seekfn)(void *, fpos_t, int); fpos_t target, curoff, ret; |