kill use of register

This commit is contained in:
tls 1997-01-09 16:31:05 +00:00
parent 4c7b22f594
commit 3811362c9a
5 changed files with 31 additions and 31 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/* $NetBSD: date.c,v 1.12 1997/01/09 16:31:05 tls Exp $ */
/*
* Copyright (c) 1985, 1987, 1988, 1993
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
static char rcsid[] = "$NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $";
static char rcsid[] = "$NetBSD: date.c,v 1.12 1997/01/09 16:31:05 tls Exp $";
#endif
#endif /* not lint */
@ -149,9 +149,9 @@ main(argc, argv)
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
void
setthetime(p)
register char *p;
char *p;
{
register struct tm *lt;
struct tm *lt;
struct timeval tv;
char *dot, *t;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cbc.c,v 1.9 1995/03/21 09:04:36 cgd Exp $ */
/* $NetBSD: cbc.c,v 1.10 1997/01/09 16:34:26 tls Exp $ */
/* cbc.c: This file contains the encryption routines for the ed line editor */
/*-
@ -43,7 +43,7 @@
#if 0
static char *rcsid = "@(#)cbc.c,v 1.2 1994/02/01 00:34:36 alm Exp";
#else
static char rcsid[] = "$NetBSD: cbc.c,v 1.9 1995/03/21 09:04:36 cgd Exp $";
static char rcsid[] = "$NetBSD: cbc.c,v 1.10 1997/01/09 16:34:26 tls Exp $";
#endif
#endif /* not lint */
@ -183,7 +183,7 @@ flush_des_file(fp)
int
get_keyword()
{
register char *p; /* used to obtain the key */
char *p; /* used to obtain the key */
Desbuf msgbuf; /* I/O buffer */
/*
@ -254,7 +254,7 @@ expand_des_key(obuf, ibuf)
char *obuf; /* bit pattern */
char *ibuf; /* the key itself */
{
register int i, j; /* counter in a for loop */
int i, j; /* counter in a for loop */
int nbuf[64]; /* used for hex/key translation */
/*
@ -321,8 +321,8 @@ void
set_des_key(buf)
Desbuf buf; /* key block */
{
register int i, j; /* counter in a for loop */
register int par; /* parity counter */
int i, j; /* counter in a for loop */
int par; /* parity counter */
/*
* if the parity is not preserved, flip it
@ -392,8 +392,8 @@ cbc_decode(msgbuf, fp)
FILE *fp; /* input file descriptor */
{
Desbuf ibuf; /* temp buffer for initialization vector */
register int n; /* number of bytes actually read */
register int c; /* used to test for EOF */
int n; /* number of bytes actually read */
int c; /* used to test for EOF */
int inverse = 1; /* 0 to encrypt, 1 to decrypt */
if ((n = READ(BUFFER(msgbuf), 8, fp)) == 8) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: io.c,v 1.2 1995/03/21 09:04:43 cgd Exp $ */
/* $NetBSD: io.c,v 1.3 1997/01/09 16:34:27 tls Exp $ */
/* io.c: This file contains the i/o routines for the ed line editor */
/*-
@ -31,7 +31,7 @@
#if 0
static char *rcsid = "@(#)io.c,v 1.1 1994/02/01 00:34:41 alm Exp";
#else
static char rcsid[] = "$NetBSD: io.c,v 1.2 1995/03/21 09:04:43 cgd Exp $";
static char rcsid[] = "$NetBSD: io.c,v 1.3 1997/01/09 16:34:27 tls Exp $";
#endif
#endif /* not lint */
@ -129,8 +129,8 @@ int
get_stream_line(fp)
FILE *fp;
{
register int c;
register int i = 0;
int c;
int i = 0;
while (((c = des ? get_des_char(fp) : getc(fp)) != EOF || !feof(fp) &&
!ferror(fp)) && c != '\n') {
@ -279,8 +279,8 @@ get_extended_line(sizep, nonl)
int
get_tty_line()
{
register int oi = 0;
register int i = 0;
int oi = 0;
int i = 0;
int c;
for (;;)

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkdir.c,v 1.15 1996/08/12 22:44:53 explorer Exp $ */
/* $NetBSD: mkdir.c,v 1.16 1997/01/09 16:39:08 tls Exp $ */
/*
* Copyright (c) 1983, 1992, 1993
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
#else
static char rcsid[] = "$NetBSD: mkdir.c,v 1.15 1996/08/12 22:44:53 explorer Exp $";
static char rcsid[] = "$NetBSD: mkdir.c,v 1.16 1997/01/09 16:39:08 tls Exp $";
#endif
#endif /* not lint */
@ -103,7 +103,7 @@ main(argc, argv)
usage();
for (exitval = 0; *argv != NULL; ++argv) {
register char *slash;
char *slash;
/* Remove trailing slashes, per POSIX. */
slash = strrchr(*argv, '\0');
@ -136,7 +136,7 @@ mkpath(path, mode, dir_mode)
mode_t dir_mode;
{
struct stat sb;
register char *slash;
char *slash;
int done = 0;
slash = path;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mt.c,v 1.17 1996/08/09 04:28:43 jtc Exp $ */
/* $NetBSD: mt.c,v 1.18 1997/01/09 16:39:53 tls Exp $ */
/*
* Copyright (c) 1980, 1993
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93";
#else
static char rcsid[] = "$NetBSD: mt.c,v 1.17 1996/08/09 04:28:43 jtc Exp $";
static char rcsid[] = "$NetBSD: mt.c,v 1.18 1997/01/09 16:39:53 tls Exp $";
#endif
#endif /* not lint */
@ -103,7 +103,7 @@ main(argc, argv)
int argc;
char *argv[];
{
register const struct commands *comp;
const struct commands *comp;
struct mtget mt_status;
struct mtop mt_com;
int ch, len, mtfd, flags;
@ -224,9 +224,9 @@ struct tape_desc {
*/
void
status(bp)
register struct mtget *bp;
struct mtget *bp;
{
register struct tape_desc *mt;
struct tape_desc *mt;
for (mt = tapes;; mt++) {
if (mt->t_type == 0) {
@ -255,11 +255,11 @@ status(bp)
void
printreg(s, v, bits)
char *s;
register u_int v;
register char *bits;
u_int v;
char *bits;
{
register int i, any = 0;
register char c;
int i, any = 0;
char c;
if (bits && *bits == 8)
printf("%s=%o", s, v);