diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
commit | 1196344bb37334ed0f8808056a53ca058758843c (patch) | |
tree | 12b252b7426e8a8904ef257bea10fea6038142f4 /lib/libc/stdio | |
parent | 8ee1755c8ef3729bb2d3c4bfae2b85b786fdaf70 (diff) | |
download | FreeBSD-src-1196344bb37334ed0f8808056a53ca058758843c.zip FreeBSD-src-1196344bb37334ed0f8808056a53ca058758843c.tar.gz |
Remove 'register' keyword.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fdopen.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/fgets.c | 10 | ||||
-rw-r--r-- | lib/libc/stdio/flags.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/fpurge.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/fputc.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/fread.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/fseek.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/ftell.c | 10 | ||||
-rw-r--r-- | lib/libc/stdio/funopen.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/fvwrite.c | 12 | ||||
-rw-r--r-- | lib/libc/stdio/gets.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/makebuf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/mktemp.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/perror.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/putc.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/putchar.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/setbuffer.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/setvbuf.c | 8 | ||||
-rw-r--r-- | lib/libc/stdio/stdio.c | 6 | ||||
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/vfscanf.c | 6 | ||||
-rw-r--r-- | lib/libc/stdio/wbuf.c | 6 | ||||
-rw-r--r-- | lib/libc/stdio/wsetup.c | 2 |
23 files changed, 56 insertions, 56 deletions
diff --git a/lib/libc/stdio/fdopen.c b/lib/libc/stdio/fdopen.c index 30bf5b9..7b8af8a 100644 --- a/lib/libc/stdio/fdopen.c +++ b/lib/libc/stdio/fdopen.c @@ -54,7 +54,7 @@ fdopen(fd, mode) int fd; const char *mode; { - register FILE *fp; + FILE *fp; static int nofile; int flags, oflags, fdflags, tmp; diff --git a/lib/libc/stdio/fgets.c b/lib/libc/stdio/fgets.c index ccf5535..1802155 100644 --- a/lib/libc/stdio/fgets.c +++ b/lib/libc/stdio/fgets.c @@ -57,12 +57,12 @@ static const char rcsid[] = char * fgets(buf, n, fp) char *buf; - register int n; - register FILE *fp; + int n; + FILE *fp; { - register size_t len; - register char *s; - register unsigned char *p, *t; + size_t len; + char *s; + unsigned char *p, *t; if (n <= 0) /* sanity check */ return (NULL); diff --git a/lib/libc/stdio/flags.c b/lib/libc/stdio/flags.c index 4f39460..be1377d 100644 --- a/lib/libc/stdio/flags.c +++ b/lib/libc/stdio/flags.c @@ -56,10 +56,10 @@ static const char rcsid[] = */ int __sflags(mode, optr) - register const char *mode; + const char *mode; int *optr; { - register int ret, m, o; + int ret, m, o; switch (*mode++) { diff --git a/lib/libc/stdio/fpurge.c b/lib/libc/stdio/fpurge.c index 4959098..5f96c6a 100644 --- a/lib/libc/stdio/fpurge.c +++ b/lib/libc/stdio/fpurge.c @@ -56,7 +56,7 @@ static const char rcsid[] = */ int fpurge(fp) - register FILE *fp; + FILE *fp; { int retval; FLOCKFILE(fp); diff --git a/lib/libc/stdio/fputc.c b/lib/libc/stdio/fputc.c index 24eb560..d7e8ab4 100644 --- a/lib/libc/stdio/fputc.c +++ b/lib/libc/stdio/fputc.c @@ -50,7 +50,7 @@ static const char rcsid[] = int fputc(c, fp) int c; - register FILE *fp; + FILE *fp; { int retval; FLOCKFILE(fp); diff --git a/lib/libc/stdio/fread.c b/lib/libc/stdio/fread.c index f7e8985..08a15ef 100644 --- a/lib/libc/stdio/fread.c +++ b/lib/libc/stdio/fread.c @@ -53,11 +53,11 @@ size_t fread(buf, size, count, fp) void *buf; size_t size, count; - register FILE *fp; + FILE *fp; { - register size_t resid; - register char *p; - register int r; + size_t resid; + char *p; + int r; size_t total; /* diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index 237d793..86659e5 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -58,7 +58,7 @@ static const char rcsid[] = int fseek(fp, offset, whence) - register FILE *fp; + FILE *fp; long offset; int whence; { @@ -109,7 +109,7 @@ _fseeko(fp, offset, whence, ltest) int whence; int ltest; { - register fpos_t (*seekfn) __P((void *, fpos_t, int)); + fpos_t (*seekfn) __P((void *, fpos_t, int)); fpos_t target, curoff, ret; size_t n; struct stat st; diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c index 174eaa8..9d51750 100644 --- a/lib/libc/stdio/ftell.c +++ b/lib/libc/stdio/ftell.c @@ -56,9 +56,9 @@ static const char rcsid[] = */ long ftell(fp) - register FILE *fp; + FILE *fp; { - register off_t rv; + off_t rv; rv = ftello(fp); if (rv > LONG_MAX) { @@ -73,7 +73,7 @@ ftell(fp) */ off_t ftello(fp) - register FILE *fp; + FILE *fp; { fpos_t rv; int ret; @@ -92,10 +92,10 @@ ftello(fp) int _ftello(fp, offset) - register FILE *fp; + FILE *fp; fpos_t *offset; { - register fpos_t pos; + fpos_t pos; size_t n; if (fp->_seek == NULL) { diff --git a/lib/libc/stdio/funopen.c b/lib/libc/stdio/funopen.c index f66c60e..61ecfd8 100644 --- a/lib/libc/stdio/funopen.c +++ b/lib/libc/stdio/funopen.c @@ -56,7 +56,7 @@ funopen(cookie, readfn, writefn, seekfn, closefn) #endif int (*closefn)(); { - register FILE *fp; + FILE *fp; int flags; if (readfn == NULL) { diff --git a/lib/libc/stdio/fvwrite.c b/lib/libc/stdio/fvwrite.c index 9196825..aee2134 100644 --- a/lib/libc/stdio/fvwrite.c +++ b/lib/libc/stdio/fvwrite.c @@ -56,13 +56,13 @@ static const char rcsid[] = */ int __sfvwrite(fp, uio) - register FILE *fp; - register struct __suio *uio; + FILE *fp; + struct __suio *uio; { - register size_t len; - register char *p; - register struct __siov *iov; - register int w, s; + size_t len; + char *p; + struct __siov *iov; + int w, s; char *nl; int nlknown, nldist; diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c index 7a368cf..7989bb6 100644 --- a/lib/libc/stdio/gets.c +++ b/lib/libc/stdio/gets.c @@ -54,8 +54,8 @@ char * gets(buf) char *buf; { - register int c; - register char *s; + int c; + char *s; static int warned; static char w[] = "warning: this program uses gets(), which is unsafe.\n"; diff --git a/lib/libc/stdio/makebuf.c b/lib/libc/stdio/makebuf.c index 34fe8e6..8188f50 100644 --- a/lib/libc/stdio/makebuf.c +++ b/lib/libc/stdio/makebuf.c @@ -58,10 +58,10 @@ static char sccsid[] = "@(#)makebuf.c 8.1 (Berkeley) 6/4/93"; */ void __smakebuf(fp) - register FILE *fp; + FILE *fp; { - register void *p; - register int flags; + void *p; + int flags; size_t size; int couldbetty; @@ -91,7 +91,7 @@ __smakebuf(fp) */ int __swhatbuf(fp, bufsize, couldbetty) - register FILE *fp; + FILE *fp; size_t *bufsize; int *couldbetty; { diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index e4c8c28..a0d396d 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -104,11 +104,11 @@ mktemp(path) static int _gettemp(path, doopen, domkdir, slen) char *path; - register int *doopen; + int *doopen; int domkdir; int slen; { - register char *start, *trv, *suffp; + char *start, *trv, *suffp; char *pad; struct stat sbuf; int rval; diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index c137e06..77886bf 100644 --- a/lib/libc/stdio/perror.c +++ b/lib/libc/stdio/perror.c @@ -50,7 +50,7 @@ void perror(s) const char *s; { - register struct iovec *v; + struct iovec *v; struct iovec iov[4]; v = iov; diff --git a/lib/libc/stdio/putc.c b/lib/libc/stdio/putc.c index 72d6bbf..ca32e54 100644 --- a/lib/libc/stdio/putc.c +++ b/lib/libc/stdio/putc.c @@ -58,7 +58,7 @@ static const char rcsid[] = int putc(c, fp) int c; - register FILE *fp; + FILE *fp; { int retval; FLOCKFILE(fp); diff --git a/lib/libc/stdio/putchar.c b/lib/libc/stdio/putchar.c index a611fbb..f1c727b 100644 --- a/lib/libc/stdio/putchar.c +++ b/lib/libc/stdio/putchar.c @@ -63,7 +63,7 @@ putchar(c) int c; { int retval; - register FILE *so = stdout; + FILE *so = stdout; FLOCKFILE(so); retval = __sputc(c, so); diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c index 7db2d4d..cb770be 100644 --- a/lib/libc/stdio/setbuffer.c +++ b/lib/libc/stdio/setbuffer.c @@ -46,7 +46,7 @@ static const char rcsid[] = void setbuffer(fp, buf, size) - register FILE *fp; + FILE *fp; char *buf; int size; { diff --git a/lib/libc/stdio/setvbuf.c b/lib/libc/stdio/setvbuf.c index c2179ca..f416735 100644 --- a/lib/libc/stdio/setvbuf.c +++ b/lib/libc/stdio/setvbuf.c @@ -55,12 +55,12 @@ static const char rcsid[] = */ int setvbuf(fp, buf, mode, size) - register FILE *fp; + FILE *fp; char *buf; - register int mode; - register size_t size; + int mode; + size_t size; { - register int ret, flags; + int ret, flags; size_t iosize; int ttyflag; diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 7f66fa8..0358f10 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -60,7 +60,7 @@ __sread(cookie, buf, n) char *buf; int n; { - register FILE *fp = cookie; + FILE *fp = cookie; return(_read(fp->_file, buf, (size_t)n)); } @@ -71,7 +71,7 @@ __swrite(cookie, buf, n) char const *buf; int n; { - register FILE *fp = cookie; + FILE *fp = cookie; return (_write(fp->_file, buf, (size_t)n)); } @@ -82,7 +82,7 @@ __sseek(cookie, offset, whence) fpos_t offset; int whence; { - register FILE *fp = cookie; + FILE *fp = cookie; return (lseek(fp->_file, (off_t)offset, whence)); } diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 03c3706..15b1c64 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -189,8 +189,8 @@ static char * __ultoa(u_long val, char *endp, int base, int octzero, char *xdigs, int needgrp, char thousep, const char *grp) { - register char *cp = endp; - register long sval; + char *cp = endp; + long sval; int ndig; /* diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index 5181a4e..c8644e8 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -702,10 +702,10 @@ match_failure: */ static u_char * __sccl(tab, fmt) - register char *tab; - register u_char *fmt; + char *tab; + u_char *fmt; { - register int c, n, v, i; + int c, n, v, i; /* first `clear' the whole table */ c = *fmt++; /* first char hat => negated scanset */ diff --git a/lib/libc/stdio/wbuf.c b/lib/libc/stdio/wbuf.c index 54da709..a354345 100644 --- a/lib/libc/stdio/wbuf.c +++ b/lib/libc/stdio/wbuf.c @@ -54,10 +54,10 @@ static const char rcsid[] = */ int __swbuf(c, fp) - register int c; - register FILE *fp; + int c; + FILE *fp; { - register int n; + int n; /* * In case we cannot write, or longjmp takes us out early, diff --git a/lib/libc/stdio/wsetup.c b/lib/libc/stdio/wsetup.c index 074a880..be5c0a6 100644 --- a/lib/libc/stdio/wsetup.c +++ b/lib/libc/stdio/wsetup.c @@ -53,7 +53,7 @@ static const char rcsid[] = */ int __swsetup(fp) - register FILE *fp; + FILE *fp; { /* make sure stdio is set up */ if (!__sdidinit) |