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/ftell.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/ftell.c')
-rw-r--r-- | lib/libc/stdio/ftell.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c index 9a1c160..2c8800c 100644 --- a/lib/libc/stdio/ftell.c +++ b/lib/libc/stdio/ftell.c @@ -49,8 +49,7 @@ __FBSDID("$FreeBSD$"); * standard ftell function. */ long -ftell(fp) - FILE *fp; +ftell(FILE *fp) { off_t rv; @@ -66,8 +65,7 @@ ftell(fp) * ftello: return current offset. */ off_t -ftello(fp) - FILE *fp; +ftello(FILE *fp) { fpos_t rv; int ret; @@ -85,9 +83,7 @@ ftello(fp) } int -_ftello(fp, offset) - FILE *fp; - fpos_t *offset; +_ftello(FILE *fp, fpos_t *offset) { fpos_t pos; size_t n; |