From 4c7b22f594ed4bfa37cf8ac23743197913bc1786 Mon Sep 17 00:00:00 2001 From: tls Date: Thu, 9 Jan 1997 16:07:09 +0000 Subject: [PATCH] kill use of register --- bin/cat/cat.c | 16 ++++++++-------- bin/cp/utils.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 2f23cc3c61ea..e3c8ef81ee83 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -1,4 +1,4 @@ -/* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */ +/* $NetBSD: cat.c,v 1.12 1997/01/09 16:07:09 tls Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $"; +static char rcsid[] = "$NetBSD: cat.c,v 1.12 1997/01/09 16:07:09 tls Exp $"; #endif #endif /* not lint */ @@ -126,7 +126,7 @@ void cook_args(argv) char **argv; { - register FILE *fp; + FILE *fp; fp = stdin; filename = "stdin"; @@ -149,9 +149,9 @@ cook_args(argv) void cook_buf(fp) - register FILE *fp; + FILE *fp; { - register int ch, gobble, line, prev; + int ch, gobble, line, prev; line = gobble = 0; for (prev = '\n'; (ch = getc(fp)) != EOF; prev = ch) { @@ -214,7 +214,7 @@ void raw_args(argv) char **argv; { - register int fd; + int fd; fd = fileno(stdin); filename = "stdin"; @@ -237,9 +237,9 @@ raw_args(argv) void raw_cat(rfd) - register int rfd; + int rfd; { - register int nr, nw, off, wfd; + int nr, nw, off, wfd; static int bsize; static char *buf; struct stat sbuf; diff --git a/bin/cp/utils.c b/bin/cp/utils.c index e4461a5e5af2..4fb4fc7e83e6 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -1,4 +1,4 @@ -/* $NetBSD: utils.c,v 1.4 1995/08/02 07:17:02 jtc Exp $ */ +/* $NetBSD: utils.c,v 1.5 1997/01/09 16:07:33 tls Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)utils.c 8.3 (Berkeley) 4/1/94"; #else -static char rcsid[] = "$NetBSD: utils.c,v 1.4 1995/08/02 07:17:02 jtc Exp $"; +static char rcsid[] = "$NetBSD: utils.c,v 1.5 1997/01/09 16:07:33 tls Exp $"; #endif #endif /* not lint */ @@ -237,7 +237,7 @@ copy_special(from_stat, exists) int setfile(fs, fd) - register struct stat *fs; + struct stat *fs; int fd; { static struct timeval tv[2];