remove obsolete register declarations

This commit is contained in:
perry 1998-02-03 19:12:13 +00:00
parent b280ec0268
commit 0b7831a37b
49 changed files with 307 additions and 307 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: i386_vm86.c,v 1.2 1997/07/30 23:13:40 jtc Exp $ */
/* $NetBSD: i386_vm86.c,v 1.3 1998/02/03 19:12:13 perry Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@
int
i386_vm86(vmcp)
register struct vm86_struct *vmcp;
struct vm86_struct *vmcp;
{
return sysarch(I386_VM86, (char *)vmcp);

View File

@ -1,4 +1,4 @@
/* $NetBSD: crypt.c,v 1.9 1997/11/04 03:31:45 cgd Exp $ */
/* $NetBSD: crypt.c,v 1.10 1998/02/03 19:12:14 perry Exp $ */
/*
* Copyright (c) 1989, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)crypt.c 8.1.1.1 (Berkeley) 8/18/93";
#else
__RCSID("$NetBSD: crypt.c,v 1.9 1997/11/04 03:31:45 cgd Exp $");
__RCSID("$NetBSD: crypt.c,v 1.10 1998/02/03 19:12:14 perry Exp $");
#endif
#endif /* not lint */
@ -623,11 +623,11 @@ des_cipher(in, out, salt, num_iter)
{
/* variables that we want in registers, most important first */
#if defined(pdp11)
register int j;
int j;
#endif
register int32_t L0, L1, R0, R1, k;
register C_block *kp;
register int ks_inc, loop_count;
int32_t L0, L1, R0, R1, k;
C_block *kp;
int ks_inc, loop_count;
C_block B;
L0 = salt;
@ -682,7 +682,7 @@ des_cipher(in, out, salt, num_iter)
/* use this if your "long" int indexing is slow */
#define DOXOR(x,y,i) j=B.b[i]; x^=SPTAB(SPE[0][i],j); y^=SPTAB(SPE[1][i],j);
#else
/* use this if "k" is allocated to a register ... */
/* use this if "k" is allocated to a ... */
#define DOXOR(x,y,i) k=B.b[i]; x^=SPTAB(SPE[0][i],k); y^=SPTAB(SPE[1][i],k);
#endif
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $ */
/* $NetBSD: addbytes.c,v 1.12 1998/02/03 19:12:16 perry Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $");
__RCSID("$NetBSD: addbytes.c,v 1.12 1998/02/03 19:12:16 perry Exp $");
#endif
#endif /* not lint */
@ -53,13 +53,13 @@ __RCSID("$NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $");
*/
int
__waddbytes(win, bytes, count, so)
register WINDOW *win;
register const char *bytes;
register int count;
WINDOW *win;
const char *bytes;
int count;
int so;
{
static char blanks[] = " ";
register int c, newx, x, y;
int c, newx, x, y;
char stand;
__LINE *lp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: box.c,v 1.8 1997/07/22 07:36:24 mikel Exp $ */
/* $NetBSD: box.c,v 1.9 1998/02/03 19:12:16 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)box.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: box.c,v 1.8 1997/07/22 07:36:24 mikel Exp $");
__RCSID("$NetBSD: box.c,v 1.9 1998/02/03 19:12:16 perry Exp $");
#endif
#endif /* not lint */
@ -51,11 +51,11 @@ __RCSID("$NetBSD: box.c,v 1.8 1997/07/22 07:36:24 mikel Exp $");
*/
int
box(win, vert, hor)
register WINDOW *win;
WINDOW *win;
int vert, hor;
{
register int endy, endx, i;
register __LDATA *fp, *lp;
int endy, endx, i;
__LDATA *fp, *lp;
endx = win->maxx;
endy = win->maxy - 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: clear.c,v 1.7 1997/07/22 07:36:26 mikel Exp $ */
/* $NetBSD: clear.c,v 1.8 1998/02/03 19:12:17 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)clear.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: clear.c,v 1.7 1997/07/22 07:36:26 mikel Exp $");
__RCSID("$NetBSD: clear.c,v 1.8 1998/02/03 19:12:17 perry Exp $");
#endif
#endif /* not lint */
@ -50,7 +50,7 @@ __RCSID("$NetBSD: clear.c,v 1.7 1997/07/22 07:36:26 mikel Exp $");
*/
int
wclear(win)
register WINDOW *win;
WINDOW *win;
{
if (werase(win) == OK) {
win->flags |= __CLEAROK;

View File

@ -1,4 +1,4 @@
/* $NetBSD: clrtobot.c,v 1.8 1997/07/22 07:36:27 mikel Exp $ */
/* $NetBSD: clrtobot.c,v 1.9 1998/02/03 19:12:18 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)clrtobot.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: clrtobot.c,v 1.8 1997/07/22 07:36:27 mikel Exp $");
__RCSID("$NetBSD: clrtobot.c,v 1.9 1998/02/03 19:12:18 perry Exp $");
#endif
#endif /* not lint */
@ -50,10 +50,10 @@ __RCSID("$NetBSD: clrtobot.c,v 1.8 1997/07/22 07:36:27 mikel Exp $");
*/
int
wclrtobot(win)
register WINDOW *win;
WINDOW *win;
{
register int minx, startx, starty, y;
register __LDATA *sp, *end, *maxx;
int minx, startx, starty, y;
__LDATA *sp, *end, *maxx;
#ifdef __GNUC__
maxx = NULL; /* XXX gcc -Wuninitialized */

View File

@ -1,4 +1,4 @@
/* $NetBSD: clrtoeol.c,v 1.8 1997/07/22 07:36:29 mikel Exp $ */
/* $NetBSD: clrtoeol.c,v 1.9 1998/02/03 19:12:18 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)clrtoeol.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: clrtoeol.c,v 1.8 1997/07/22 07:36:29 mikel Exp $");
__RCSID("$NetBSD: clrtoeol.c,v 1.9 1998/02/03 19:12:18 perry Exp $");
#endif
#endif /* not lint */
@ -50,10 +50,10 @@ __RCSID("$NetBSD: clrtoeol.c,v 1.8 1997/07/22 07:36:29 mikel Exp $");
*/
int
wclrtoeol(win)
register WINDOW *win;
WINDOW *win;
{
register int minx, x, y;
register __LDATA *end, *maxx, *sp;
int minx, x, y;
__LDATA *end, *maxx, *sp;
y = win->cury;
x = win->curx;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cr_put.c,v 1.9 1997/07/22 07:36:30 mikel Exp $ */
/* $NetBSD: cr_put.c,v 1.10 1998/02/03 19:12:19 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cr_put.c 8.3 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: cr_put.c,v 1.9 1997/07/22 07:36:30 mikel Exp $");
__RCSID("$NetBSD: cr_put.c,v 1.10 1998/02/03 19:12:19 perry Exp $");
#endif
#endif /* not lint */
@ -94,8 +94,8 @@ static void
fgoto(in_refresh)
int in_refresh;
{
register int c, l;
register char *cgp;
int c, l;
char *cgp;
if (destcol >= COLS) {
destline += destcol / COLS;
@ -203,7 +203,7 @@ static int
plod(cnt, in_refresh)
int cnt, in_refresh;
{
register int i, j, k, soutcol, soutline;
int i, j, k, soutcol, soutline;
plodcnt = plodflg = cnt;
soutcol = outcol;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cur_hash.c,v 1.5 1997/07/22 07:36:33 mikel Exp $ */
/* $NetBSD: cur_hash.c,v 1.6 1998/02/03 19:12:20 perry Exp $ */
/*
* Copyright (c) 1992, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cur_hash.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: cur_hash.c,v 1.5 1997/07/22 07:36:33 mikel Exp $");
__RCSID("$NetBSD: cur_hash.c,v 1.6 1998/02/03 19:12:20 perry Exp $");
#endif
#endif /* not lint */
@ -54,7 +54,7 @@ __hash(s, len)
char *s;
int len;
{
register u_int h, g, i;
u_int h, g, i;
h = 0;
i = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: delch.c,v 1.8 1997/07/22 07:36:35 mikel Exp $ */
/* $NetBSD: delch.c,v 1.9 1998/02/03 19:12:21 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)delch.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: delch.c,v 1.8 1997/07/22 07:36:35 mikel Exp $");
__RCSID("$NetBSD: delch.c,v 1.9 1998/02/03 19:12:21 perry Exp $");
#endif
#endif /* not lint */
@ -52,9 +52,9 @@ __RCSID("$NetBSD: delch.c,v 1.8 1997/07/22 07:36:35 mikel Exp $");
*/
int
wdelch(win)
register WINDOW *win;
WINDOW *win;
{
register __LDATA *end, *temp1, *temp2;
__LDATA *end, *temp1, *temp2;
end = &win->lines[win->cury]->line[win->maxx - 1];
temp1 = &win->lines[win->cury]->line[win->curx];

View File

@ -1,4 +1,4 @@
/* $NetBSD: deleteln.c,v 1.8 1997/07/22 07:36:37 mikel Exp $ */
/* $NetBSD: deleteln.c,v 1.9 1998/02/03 19:12:21 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)deleteln.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: deleteln.c,v 1.8 1997/07/22 07:36:37 mikel Exp $");
__RCSID("$NetBSD: deleteln.c,v 1.9 1998/02/03 19:12:21 perry Exp $");
#endif
#endif /* not lint */
@ -52,10 +52,10 @@ __RCSID("$NetBSD: deleteln.c,v 1.8 1997/07/22 07:36:37 mikel Exp $");
*/
int
wdeleteln(win)
register WINDOW *win;
WINDOW *win;
{
register int y, i;
register __LINE *temp;
int y, i;
__LINE *temp;
#ifdef DEBUG
__CTRACE("deleteln: (%0.2o)\n", win);

View File

@ -1,4 +1,4 @@
/* $NetBSD: delwin.c,v 1.7 1997/07/22 07:36:38 mikel Exp $ */
/* $NetBSD: delwin.c,v 1.8 1998/02/03 19:12:22 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)delwin.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: delwin.c,v 1.7 1997/07/22 07:36:38 mikel Exp $");
__RCSID("$NetBSD: delwin.c,v 1.8 1998/02/03 19:12:22 perry Exp $");
#endif
#endif /* not lint */
@ -52,10 +52,10 @@ __RCSID("$NetBSD: delwin.c,v 1.7 1997/07/22 07:36:38 mikel Exp $");
*/
int
delwin(win)
register WINDOW *win;
WINDOW *win;
{
register WINDOW *wp, *np;
WINDOW *wp, *np;
if (win->orig == NULL) {
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: erase.c,v 1.9 1997/07/22 07:36:39 mikel Exp $ */
/* $NetBSD: erase.c,v 1.10 1998/02/03 19:12:22 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)erase.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: erase.c,v 1.9 1997/07/22 07:36:39 mikel Exp $");
__RCSID("$NetBSD: erase.c,v 1.10 1998/02/03 19:12:22 perry Exp $");
#endif
#endif /* not lint */
@ -50,11 +50,11 @@ __RCSID("$NetBSD: erase.c,v 1.9 1997/07/22 07:36:39 mikel Exp $");
*/
int
werase(win)
register WINDOW *win;
WINDOW *win;
{
register int minx, y;
register __LDATA *sp, *end, *start, *maxx;
int minx, y;
__LDATA *sp, *end, *start, *maxx;
#ifdef DEBUG
__CTRACE("werase: (%0.2o)\n", win);

View File

@ -1,4 +1,4 @@
/* $NetBSD: fullname.c,v 1.7 1997/07/22 07:36:41 mikel Exp $ */
/* $NetBSD: fullname.c,v 1.8 1998/02/03 19:12:23 perry Exp $ */
/*
* Copyright (c) 1981, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)fullname.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: fullname.c,v 1.7 1997/07/22 07:36:41 mikel Exp $");
__RCSID("$NetBSD: fullname.c,v 1.8 1998/02/03 19:12:23 perry Exp $");
#endif
#endif /* not lint */
@ -51,9 +51,9 @@ __RCSID("$NetBSD: fullname.c,v 1.7 1997/07/22 07:36:41 mikel Exp $");
*/
char *
fullname(bp, def)
register char *bp, *def;
char *bp, *def;
{
register char *cp;
char *cp;
*def = '\0'; /* In case no name. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: getch.c,v 1.8 1997/07/22 07:36:42 mikel Exp $ */
/* $NetBSD: getch.c,v 1.9 1998/02/03 19:12:24 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: getch.c,v 1.8 1997/07/22 07:36:42 mikel Exp $");
__RCSID("$NetBSD: getch.c,v 1.9 1998/02/03 19:12:24 perry Exp $");
#endif
#endif /* not lint */
@ -50,9 +50,9 @@ __RCSID("$NetBSD: getch.c,v 1.8 1997/07/22 07:36:42 mikel Exp $");
*/
int
wgetch(win)
register WINDOW *win;
WINDOW *win;
{
register int inp, weset;
int inp, weset;
if (!(win->flags & __SCROLLOK) && (win->flags & __FULLWIN)
&& win->curx == win->maxx - 1 && win->cury == win->maxy - 1)

View File

@ -1,4 +1,4 @@
/* $NetBSD: getstr.c,v 1.8 1997/07/22 07:36:43 mikel Exp $ */
/* $NetBSD: getstr.c,v 1.9 1998/02/03 19:12:24 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getstr.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: getstr.c,v 1.8 1997/07/22 07:36:43 mikel Exp $");
__RCSID("$NetBSD: getstr.c,v 1.9 1998/02/03 19:12:24 perry Exp $");
#endif
#endif /* not lint */
@ -50,8 +50,8 @@ __RCSID("$NetBSD: getstr.c,v 1.8 1997/07/22 07:36:43 mikel Exp $");
*/
int
wgetstr(win, str)
register WINDOW *win;
register char *str;
WINDOW *win;
char *str;
{
while ((*str = wgetch(win)) != ERR && *str != '\n')
str++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: id_subwins.c,v 1.7 1997/07/22 07:36:44 mikel Exp $ */
/* $NetBSD: id_subwins.c,v 1.8 1998/02/03 19:12:25 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)id_subwins.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: id_subwins.c,v 1.7 1997/07/22 07:36:44 mikel Exp $");
__RCSID("$NetBSD: id_subwins.c,v 1.8 1998/02/03 19:12:25 perry Exp $");
#endif
#endif /* not lint */
@ -50,10 +50,10 @@ __RCSID("$NetBSD: id_subwins.c,v 1.7 1997/07/22 07:36:44 mikel Exp $");
*/
void
__id_subwins(orig)
register WINDOW *orig;
WINDOW *orig;
{
register WINDOW *win;
register int oy, realy, y;
WINDOW *win;
int oy, realy, y;
realy = orig->begy + orig->cury;
for (win = orig->nextp; win != orig; win = win->nextp) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: initscr.c,v 1.8 1997/09/12 21:08:23 phil Exp $ */
/* $NetBSD: initscr.c,v 1.9 1998/02/03 19:12:26 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)initscr.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: initscr.c,v 1.8 1997/09/12 21:08:23 phil Exp $");
__RCSID("$NetBSD: initscr.c,v 1.9 1998/02/03 19:12:26 perry Exp $");
#endif
#endif /* not lint */
@ -54,7 +54,7 @@ __RCSID("$NetBSD: initscr.c,v 1.8 1997/09/12 21:08:23 phil Exp $");
WINDOW *
initscr()
{
register char *sp;
char *sp;
#ifdef DEBUG
__CTRACE("initscr\n");

View File

@ -1,4 +1,4 @@
/* $NetBSD: insch.c,v 1.8 1997/07/22 07:36:48 mikel Exp $ */
/* $NetBSD: insch.c,v 1.9 1998/02/03 19:12:26 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)insch.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: insch.c,v 1.8 1997/07/22 07:36:48 mikel Exp $");
__RCSID("$NetBSD: insch.c,v 1.9 1998/02/03 19:12:26 perry Exp $");
#endif
#endif /* not lint */
@ -52,11 +52,11 @@ __RCSID("$NetBSD: insch.c,v 1.8 1997/07/22 07:36:48 mikel Exp $");
*/
int
winsch(win, ch)
register WINDOW *win;
WINDOW *win;
int ch;
{
register __LDATA *end, *temp1, *temp2;
__LDATA *end, *temp1, *temp2;
end = &win->lines[win->cury]->line[win->curx];
temp1 = &win->lines[win->cury]->line[win->maxx - 1];

View File

@ -1,4 +1,4 @@
/* $NetBSD: insertln.c,v 1.8 1997/07/22 07:36:49 mikel Exp $ */
/* $NetBSD: insertln.c,v 1.9 1998/02/03 19:12:27 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)insertln.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: insertln.c,v 1.8 1997/07/22 07:36:49 mikel Exp $");
__RCSID("$NetBSD: insertln.c,v 1.9 1998/02/03 19:12:27 perry Exp $");
#endif
#endif /* not lint */
@ -52,11 +52,11 @@ __RCSID("$NetBSD: insertln.c,v 1.8 1997/07/22 07:36:49 mikel Exp $");
*/
int
winsertln(win)
register WINDOW *win;
WINDOW *win;
{
register int y, i;
register __LINE *temp;
int y, i;
__LINE *temp;
#ifdef DEBUG
__CTRACE("insertln: (%0.2o)\n", win);

View File

@ -1,4 +1,4 @@
/* $NetBSD: longname.c,v 1.7 1997/07/22 07:36:50 mikel Exp $ */
/* $NetBSD: longname.c,v 1.8 1998/02/03 19:12:28 perry Exp $ */
/*
* Copyright (c) 1981, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)longname.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: longname.c,v 1.7 1997/07/22 07:36:50 mikel Exp $");
__RCSID("$NetBSD: longname.c,v 1.8 1998/02/03 19:12:28 perry Exp $");
#endif
#endif /* not lint */
@ -50,9 +50,9 @@ __RCSID("$NetBSD: longname.c,v 1.7 1997/07/22 07:36:50 mikel Exp $");
*/
char *
longname(bp, def)
register char *bp, *def;
char *bp, *def;
{
register char *cp;
char *cp;
while (*bp && *bp != ':' && *bp != '|')
bp++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: move.c,v 1.7 1997/07/22 07:36:51 mikel Exp $ */
/* $NetBSD: move.c,v 1.8 1998/02/03 19:12:28 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: move.c,v 1.7 1997/07/22 07:36:51 mikel Exp $");
__RCSID("$NetBSD: move.c,v 1.8 1998/02/03 19:12:28 perry Exp $");
#endif
#endif /* not lint */
@ -50,8 +50,8 @@ __RCSID("$NetBSD: move.c,v 1.7 1997/07/22 07:36:51 mikel Exp $");
*/
int
wmove(win, y, x)
register WINDOW *win;
register int y, x;
WINDOW *win;
int y, x;
{
#ifdef DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: mvwin.c,v 1.7 1997/07/22 07:36:52 mikel Exp $ */
/* $NetBSD: mvwin.c,v 1.8 1998/02/03 19:12:29 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)mvwin.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: mvwin.c,v 1.7 1997/07/22 07:36:52 mikel Exp $");
__RCSID("$NetBSD: mvwin.c,v 1.8 1998/02/03 19:12:29 perry Exp $");
#endif
#endif /* not lint */
@ -50,11 +50,11 @@ __RCSID("$NetBSD: mvwin.c,v 1.7 1997/07/22 07:36:52 mikel Exp $");
*/
int
mvwin(win, by, bx)
register WINDOW *win;
register int by, bx;
WINDOW *win;
int by, bx;
{
register WINDOW *orig;
register int dy, dx;
WINDOW *orig;
int dy, dx;
if (by + win->maxy > LINES || bx + win->maxx > COLS)
return (ERR);

View File

@ -1,4 +1,4 @@
/* $NetBSD: newwin.c,v 1.8 1997/07/22 07:36:53 mikel Exp $ */
/* $NetBSD: newwin.c,v 1.9 1998/02/03 19:12:30 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)newwin.c 8.3 (Berkeley) 7/27/94";
#else
__RCSID("$NetBSD: newwin.c,v 1.8 1997/07/22 07:36:53 mikel Exp $");
__RCSID("$NetBSD: newwin.c,v 1.9 1998/02/03 19:12:30 perry Exp $");
#endif
#endif /* not lint */
@ -58,12 +58,12 @@ void __set_subwin __P((WINDOW *, WINDOW *));
*/
WINDOW *
newwin(nl, nc, by, bx)
register int nl, nc, by, bx;
int nl, nc, by, bx;
{
register WINDOW *win;
register __LINE *lp;
register int i, j;
register __LDATA *sp;
WINDOW *win;
__LINE *lp;
int i, j;
__LDATA *sp;
if (nl == 0)
nl = LINES - by;
@ -95,12 +95,12 @@ newwin(nl, nc, by, bx)
WINDOW *
subwin(orig, nl, nc, by, bx)
register WINDOW *orig;
register int by, bx, nl, nc;
WINDOW *orig;
int by, bx, nl, nc;
{
int i;
__LINE *lp;
register WINDOW *win;
WINDOW *win;
/* Make sure window fits inside the original one. */
#ifdef DEBUG
@ -132,7 +132,7 @@ subwin(orig, nl, nc, by, bx)
*/
void
__set_subwin(orig, win)
register WINDOW *orig, *win;
WINDOW *orig, *win;
{
int i;
__LINE *lp, *olp;
@ -159,11 +159,11 @@ __set_subwin(orig, win)
*/
static WINDOW *
__makenew(nl, nc, by, bx, sub)
register int by, bx, nl, nc;
int by, bx, nl, nc;
int sub;
{
register WINDOW *win;
register __LINE *lp;
WINDOW *win;
__LINE *lp;
int i;
@ -238,7 +238,7 @@ __makenew(nl, nc, by, bx, sub)
void
__swflags(win)
register WINDOW *win;
WINDOW *win;
{
win->flags &= ~(__ENDLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
if (win->begx + win->maxx == COLS) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: overlay.c,v 1.8 1997/07/22 07:36:54 mikel Exp $ */
/* $NetBSD: overlay.c,v 1.9 1998/02/03 19:12:30 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)overlay.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: overlay.c,v 1.8 1997/07/22 07:36:54 mikel Exp $");
__RCSID("$NetBSD: overlay.c,v 1.9 1998/02/03 19:12:30 perry Exp $");
#endif
#endif /* not lint */
@ -52,11 +52,11 @@ __RCSID("$NetBSD: overlay.c,v 1.8 1997/07/22 07:36:54 mikel Exp $");
*/
int
overlay(win1, win2)
register WINDOW *win1, *win2;
WINDOW *win1, *win2;
{
register int x, y, y1, y2, endy, endx, starty, startx;
register __LDATA *sp, *end;
int x, y, y1, y2, endy, endx, starty, startx;
__LDATA *sp, *end;
#ifdef DEBUG
__CTRACE("overlay: (%0.2o, %0.2o);\n", win1, win2);

View File

@ -1,4 +1,4 @@
/* $NetBSD: overwrite.c,v 1.8 1997/07/22 07:36:55 mikel Exp $ */
/* $NetBSD: overwrite.c,v 1.9 1998/02/03 19:12:31 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)overwrite.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: overwrite.c,v 1.8 1997/07/22 07:36:55 mikel Exp $");
__RCSID("$NetBSD: overwrite.c,v 1.9 1998/02/03 19:12:31 perry Exp $");
#endif
#endif /* not lint */
@ -53,9 +53,9 @@ __RCSID("$NetBSD: overwrite.c,v 1.8 1997/07/22 07:36:55 mikel Exp $");
*/
int
overwrite(win1, win2)
register WINDOW *win1, *win2;
WINDOW *win1, *win2;
{
register int x, y, endy, endx, starty, startx;
int x, y, endy, endx, starty, startx;
#ifdef DEBUG
__CTRACE("overwrite: (%0.2o, %0.2o);\n", win1, win2);

View File

@ -1,4 +1,4 @@
/* $NetBSD: printw.c,v 1.9 1997/07/22 07:36:56 mikel Exp $ */
/* $NetBSD: printw.c,v 1.10 1998/02/03 19:12:32 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)printw.c 8.3 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: printw.c,v 1.9 1997/07/22 07:36:56 mikel Exp $");
__RCSID("$NetBSD: printw.c,v 1.10 1998/02/03 19:12:32 perry Exp $");
#endif
#endif /* not lint */
@ -119,10 +119,10 @@ wprintw(win, fmt, va_alist)
*/
int
#ifdef __STDC__
mvprintw(register int y, register int x, const char *fmt, ...)
mvprintw(int y, int x, const char *fmt, ...)
#else
mvprintw(y, x, fmt, va_alist)
register int y, x;
int y, x;
char *fmt;
va_dcl
#endif
@ -144,12 +144,12 @@ mvprintw(y, x, fmt, va_alist)
int
#ifdef __STDC__
mvwprintw(register WINDOW * win, register int y, register int x,
mvwprintw(WINDOW * win, int y, int x,
const char *fmt, ...)
#else
mvwprintw(win, y, x, fmt, va_alist)
register WINDOW *win;
register int y, x;
WINDOW *win;
int y, x;
char *fmt;
va_dcl
#endif
@ -176,11 +176,11 @@ mvwprintw(win, y, x, fmt, va_alist)
static int
__winwrite(cookie, buf, n)
void *cookie;
register const char *buf;
const char *buf;
int n;
{
register WINDOW *win;
register int c;
WINDOW *win;
int c;
for (c = n, win = cookie; --c >= 0;)
if (waddch(win, *buf++) == ERR)

View File

@ -1,4 +1,4 @@
/* $NetBSD: refresh.c,v 1.9 1997/09/12 21:08:24 phil Exp $ */
/* $NetBSD: refresh.c,v 1.10 1998/02/03 19:12:32 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)refresh.c 8.7 (Berkeley) 8/13/94";
#else
__RCSID("$NetBSD: refresh.c,v 1.9 1997/09/12 21:08:24 phil Exp $");
__RCSID("$NetBSD: refresh.c,v 1.10 1998/02/03 19:12:32 perry Exp $");
#endif
#endif /* not lint */
@ -61,11 +61,11 @@ static void scrolln __P((WINDOW *, int, int, int, int, int));
*/
int
wrefresh(win)
register WINDOW *win;
WINDOW *win;
{
register __LINE *wlp;
register int retval;
register short wy;
__LINE *wlp;
int retval;
short wy;
int dnum;
/* Check if we need to restart ... */
@ -227,7 +227,7 @@ wrefresh(win)
*/
static int
makech(win, wy)
register WINDOW *win;
WINDOW *win;
int wy;
{
static __LDATA blank = {' ', 0};
@ -461,8 +461,8 @@ quickch(win)
{
#define THRESH (int) win->maxy / 4
register __LINE *clp, *tmp1, *tmp2;
register int bsize, curs, curw, starts, startw, i, j;
__LINE *clp, *tmp1, *tmp2;
int bsize, curs, curw, starts, startw, i, j;
int n, target, cur_period, bot, top, sc_region;
__LDATA buf[1024];
u_int blank_hash;

View File

@ -1,4 +1,4 @@
/* $NetBSD: scanw.c,v 1.8 1997/07/22 07:37:01 mikel Exp $ */
/* $NetBSD: scanw.c,v 1.9 1998/02/03 19:12:33 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)scanw.c 8.3 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: scanw.c,v 1.8 1997/07/22 07:37:01 mikel Exp $");
__RCSID("$NetBSD: scanw.c,v 1.9 1998/02/03 19:12:33 perry Exp $");
#endif
#endif /* not lint */
@ -114,10 +114,10 @@ wscanw(win, fmt, va_alist)
*/
int
#ifdef __STDC__
mvscanw(register int y, register int x, const char *fmt,...)
mvscanw(int y, int x, const char *fmt,...)
#else
mvscanw(y, x, fmt, va_alist)
register int y, x;
int y, x;
char *fmt;
va_dcl
#endif
@ -139,12 +139,12 @@ mvscanw(y, x, fmt, va_alist)
int
#ifdef __STDC__
mvwscanw(register WINDOW * win, register int y, register int x,
mvwscanw(WINDOW * win, int y, int x,
const char *fmt, ...)
#else
mvwscanw(win, y, x, fmt, va_alist)
register WINDOW *win;
register int y, x;
WINDOW *win;
int y, x;
char *fmt;
va_dcl
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: scroll.c,v 1.8 1997/07/22 07:37:02 mikel Exp $ */
/* $NetBSD: scroll.c,v 1.9 1998/02/03 19:12:34 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)scroll.c 8.3 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: scroll.c,v 1.8 1997/07/22 07:37:02 mikel Exp $");
__RCSID("$NetBSD: scroll.c,v 1.9 1998/02/03 19:12:34 perry Exp $");
#endif
#endif /* not lint */
@ -50,9 +50,9 @@ __RCSID("$NetBSD: scroll.c,v 1.8 1997/07/22 07:37:02 mikel Exp $");
*/
int
scroll(win)
register WINDOW *win;
WINDOW *win;
{
register int oy, ox;
int oy, ox;
#ifdef DEBUG
__CTRACE("scroll: (%0.2o)\n", win);

View File

@ -1,4 +1,4 @@
/* $NetBSD: setterm.c,v 1.9 1998/01/30 04:33:34 perry Exp $ */
/* $NetBSD: setterm.c,v 1.10 1998/02/03 19:12:35 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94";
#else
__RCSID("$NetBSD: setterm.c,v 1.9 1998/01/30 04:33:34 perry Exp $");
__RCSID("$NetBSD: setterm.c,v 1.10 1998/02/03 19:12:35 perry Exp $");
#endif
#endif /* not lint */
@ -89,11 +89,11 @@ char *ttytype;
int
setterm(type)
register char *type;
char *type;
{
static char genbuf[1024];
static char __ttytype[1024];
register int unknown;
int unknown;
struct winsize win;
char *p;
@ -178,11 +178,11 @@ setterm(type)
static void
zap()
{
register char *namp, ***sp;
register char **fp;
char *namp, ***sp;
char **fp;
char tmp[3];
#ifdef DEBUG
register char *cp;
char *cp;
#endif
tmp[2] = '\0';

View File

@ -1,4 +1,4 @@
/* $NetBSD: toucholap.c,v 1.7 1997/07/22 07:37:06 mikel Exp $ */
/* $NetBSD: toucholap.c,v 1.8 1998/02/03 19:12:35 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)toucholap.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: toucholap.c,v 1.7 1997/07/22 07:37:06 mikel Exp $");
__RCSID("$NetBSD: toucholap.c,v 1.8 1998/02/03 19:12:35 perry Exp $");
#endif
#endif /* not lint */
@ -50,9 +50,9 @@ __RCSID("$NetBSD: toucholap.c,v 1.7 1997/07/22 07:37:06 mikel Exp $");
*/
int
touchoverlap(win1, win2)
register WINDOW *win1, *win2;
WINDOW *win1, *win2;
{
register int y, endy, endx, starty, startx;
int y, endy, endx, starty, startx;
#ifdef DEBUG
__CTRACE("touchoverlap: (%0.2o, %0.2o);\n", win1, win2);

View File

@ -1,4 +1,4 @@
/* $NetBSD: touchwin.c,v 1.7 1997/07/22 07:37:07 mikel Exp $ */
/* $NetBSD: touchwin.c,v 1.8 1998/02/03 19:12:36 perry Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)touchwin.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: touchwin.c,v 1.7 1997/07/22 07:37:07 mikel Exp $");
__RCSID("$NetBSD: touchwin.c,v 1.8 1998/02/03 19:12:36 perry Exp $");
#endif
#endif /* not lint */
@ -51,7 +51,7 @@ __RCSID("$NetBSD: touchwin.c,v 1.7 1997/07/22 07:37:07 mikel Exp $");
int
touchline(win, y, sx, ex)
WINDOW *win;
register int y, sx, ex;
int y, sx, ex;
{
return (__touchline(win, y, sx, ex, 1));
}
@ -63,9 +63,9 @@ touchline(win, y, sx, ex)
*/
int
touchwin(win)
register WINDOW *win;
WINDOW *win;
{
register int y, maxy;
int y, maxy;
#ifdef DEBUG
__CTRACE("touchwin: (%0.2o)\n", win);
@ -79,9 +79,9 @@ touchwin(win)
int
__touchwin(win)
register WINDOW *win;
WINDOW *win;
{
register int y, maxy;
int y, maxy;
#ifdef DEBUG
__CTRACE("touchwin: (%0.2o)\n", win);
@ -94,8 +94,8 @@ __touchwin(win)
int
__touchline(win, y, sx, ex, force)
register WINDOW *win;
register int y, sx, ex;
WINDOW *win;
int y, sx, ex;
int force;
{
#ifdef DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: chared.c,v 1.3 1997/07/06 18:25:22 christos Exp $ */
/* $NetBSD: chared.c,v 1.4 1998/02/03 19:12:37 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)chared.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: chared.c,v 1.3 1997/07/06 18:25:22 christos Exp $");
__RCSID("$NetBSD: chared.c,v 1.4 1998/02/03 19:12:37 perry Exp $");
#endif
#endif /* not lint && not SCCSID */
@ -175,8 +175,8 @@ cv__isword(p)
*/
protected char *
c__prev_word(p, low, n, wtest)
register char *p, *low;
register int n;
char *p, *low;
int n;
int (*wtest) __P((int));
{
p--;
@ -202,8 +202,8 @@ c__prev_word(p, low, n, wtest)
*/
protected char *
c__next_word(p, high, n, wtest)
register char *p, *high;
register int n;
char *p, *high;
int n;
int (*wtest) __P((int));
{
while (n--) {
@ -224,8 +224,8 @@ c__next_word(p, high, n, wtest)
protected char *
cv_next_word(el, p, high, n, wtest)
EditLine *el;
register char *p, *high;
register int n;
char *p, *high;
int n;
int (*wtest) __P((int));
{
int test;
@ -257,8 +257,8 @@ cv_next_word(el, p, high, n, wtest)
protected char *
cv_prev_word(el, p, low, n, wtest)
EditLine *el;
register char *p, *low;
register int n;
char *p, *low;
int n;
int (*wtest) __P((int));
{
int test;
@ -300,8 +300,8 @@ c__number(p, num, dval)
int *num; /* Return value */
int dval; /* dval is the number to subtract from like $-3 */
{
register int i;
register int sign = 1;
int i;
int sign = 1;
if (*++p == '^') {
*num = 1;
@ -329,7 +329,7 @@ protected void
cv_delfini(el)
EditLine *el;
{
register int size;
int size;
int oaction;
if (el->el_chared.c_vcmd.action & INSERT)

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.c,v 1.4 1997/07/06 18:25:23 christos Exp $ */
/* $NetBSD: common.c,v 1.5 1998/02/03 19:12:38 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: common.c,v 1.4 1997/07/06 18:25:23 christos Exp $");
__RCSID("$NetBSD: common.c,v 1.5 1998/02/03 19:12:38 perry Exp $");
#endif
#endif /* not lint && not SCCSID */
@ -456,7 +456,7 @@ ed_digit(el, c)
protected el_action_t
ed_argument_digit(el, c)
EditLine *el;
register int c;
int c;
{
if (!isdigit(c))
return CC_ERROR;

View File

@ -1,4 +1,4 @@
/* $NetBSD: emacs.c,v 1.4 1997/07/06 18:25:25 christos Exp $ */
/* $NetBSD: emacs.c,v 1.5 1998/02/03 19:12:39 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)emacs.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: emacs.c,v 1.4 1997/07/06 18:25:25 christos Exp $");
__RCSID("$NetBSD: emacs.c,v 1.5 1998/02/03 19:12:39 perry Exp $");
#endif
#endif /* not lint && not SCCSID */
@ -399,7 +399,7 @@ em_exchange_mark(el, c)
EditLine *el;
int c;
{
register char *cp;
char *cp;
cp = el->el_line.cursor;
el->el_line.cursor = el->el_chared.c_kill.mark;

View File

@ -1,4 +1,4 @@
/* $NetBSD: map.c,v 1.4 1997/07/06 18:25:29 christos Exp $ */
/* $NetBSD: map.c,v 1.5 1998/02/03 19:12:40 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: map.c,v 1.4 1997/07/06 18:25:29 christos Exp $");
__RCSID("$NetBSD: map.c,v 1.5 1998/02/03 19:12:40 perry Exp $");
#endif
#endif /* not lint && not SCCSID */
@ -969,7 +969,7 @@ map_init_meta(el)
EditLine *el;
{
char buf[3];
register int i;
int i;
el_action_t *map = el->el_map.key;
el_action_t *alt = el->el_map.alt;
@ -1011,7 +1011,7 @@ protected void
map_init_vi(el)
EditLine *el;
{
register int i;
int i;
el_action_t *key = el->el_map.key;
el_action_t *alt = el->el_map.alt;
el_action_t *vii = el->el_map.vii;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vi.c,v 1.3 1997/07/06 18:25:39 christos Exp $ */
/* $NetBSD: vi.c,v 1.4 1998/02/03 19:12:40 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)vi.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: vi.c,v 1.3 1997/07/06 18:25:39 christos Exp $");
__RCSID("$NetBSD: vi.c,v 1.4 1998/02/03 19:12:40 perry Exp $");
#endif
#endif /* not lint && not SCCSID */
@ -62,7 +62,7 @@ cv_action(el, c)
EditLine *el;
int c;
{
register char *cp, *kp;
char *cp, *kp;
if (el->el_chared.c_vcmd.action & DELETE) {
el->el_chared.c_vcmd.action = NOP;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm.c,v 1.8 1997/08/15 02:07:39 mikel Exp $ */
/* $NetBSD: kvm.c,v 1.9 1998/02/03 19:12:46 perry Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
__RCSID("$NetBSD: kvm.c,v 1.8 1997/08/15 02:07:39 mikel Exp $");
__RCSID("$NetBSD: kvm.c,v 1.9 1998/02/03 19:12:46 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -135,7 +135,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
#endif
{
va_list ap;
register int n;
int n;
#if __STDC__
va_start(ap, fmt);
@ -147,7 +147,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
(void)vfprintf(stderr, fmt, ap);
(void)fprintf(stderr, ": %s\n", strerror(errno));
} else {
register char *cp = kd->errbuf;
char *cp = kd->errbuf;
(void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap);
n = strlen(cp);
@ -159,8 +159,8 @@ _kvm_syserr(kd, program, fmt, va_alist)
void *
_kvm_malloc(kd, n)
register kvm_t *kd;
register size_t n;
kvm_t *kd;
size_t n;
{
void *p;
@ -171,7 +171,7 @@ _kvm_malloc(kd, n)
static kvm_t *
_kvm_open(kd, uf, mf, sf, flag, errout)
register kvm_t *kd;
kvm_t *kd;
const char *uf;
const char *mf;
const char *sf;
@ -292,7 +292,7 @@ kvm_openfiles(uf, mf, sf, flag, errout)
int flag;
char *errout;
{
register kvm_t *kd;
kvm_t *kd;
if ((kd = malloc(sizeof(*kd))) == NULL) {
(void)strncpy(errout, strerror(errno), _POSIX2_LINE_MAX - 1);
@ -310,7 +310,7 @@ kvm_open(uf, mf, sf, flag, program)
int flag;
const char *program;
{
register kvm_t *kd;
kvm_t *kd;
if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
(void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
@ -324,7 +324,7 @@ int
kvm_close(kd)
kvm_t *kd;
{
register int error = 0;
int error = 0;
if (kd->pmfd >= 0)
error |= close(kd->pmfd);
@ -417,8 +417,8 @@ kvm_nlist(kd, nl)
kvm_t *kd;
struct nlist *nl;
{
register struct nlist *p;
register int nvalid, rv;
struct nlist *p;
int nvalid, rv;
/*
* If we can't use the data base, revert to the
@ -437,7 +437,7 @@ kvm_nlist(kd, nl)
*/
nvalid = 0;
for (p = nl; p->n_name && p->n_name[0]; ++p) {
register int len;
int len;
DBT rec;
if ((len = strlen(p->n_name)) > 4096) {
@ -471,12 +471,12 @@ kvm_nlist(kd, nl)
ssize_t
kvm_read(kd, kva, buf, len)
kvm_t *kd;
register u_long kva;
register void *buf;
register size_t len;
u_long kva;
void *buf;
size_t len;
{
register int cc;
register void *cp;
int cc;
void *cp;
if (ISALIVE(kd)) {
/*
@ -535,11 +535,11 @@ kvm_read(kd, kva, buf, len)
ssize_t
kvm_write(kd, kva, buf, len)
kvm_t *kd;
register u_long kva;
register const void *buf;
register size_t len;
u_long kva;
const void *buf;
size_t len;
{
register int cc;
int cc;
if (ISALIVE(kd)) {
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_m68k.c,v 1.5 1997/08/15 02:07:40 mikel Exp $ */
/* $NetBSD: kvm_m68k.c,v 1.6 1998/02/03 19:12:46 perry Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: kvm_m68k.c,v 1.5 1997/08/15 02:07:40 mikel Exp $");
__RCSID("$NetBSD: kvm_m68k.c,v 1.6 1998/02/03 19:12:46 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -135,9 +135,9 @@ _kvm_vatop(kd, sta, va, pa)
u_long va;
u_long *pa;
{
register struct vmstate *vm;
register u_long lowram;
register u_long addr;
struct vmstate *vm;
u_long lowram;
u_long addr;
int p, ste, pte;
int offset;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm.c,v 1.54 1997/10/10 08:45:31 mrg Exp $ */
/* $NetBSD: kvm.c,v 1.55 1998/02/03 19:12:42 perry Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
__RCSID("$NetBSD: kvm.c,v 1.54 1997/10/10 08:45:31 mrg Exp $");
__RCSID("$NetBSD: kvm.c,v 1.55 1998/02/03 19:12:42 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -141,7 +141,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
#endif
{
va_list ap;
register int n;
int n;
#if __STDC__
va_start(ap, fmt);
@ -153,7 +153,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
(void)vfprintf(stderr, fmt, ap);
(void)fprintf(stderr, ": %s\n", strerror(errno));
} else {
register char *cp = kd->errbuf;
char *cp = kd->errbuf;
(void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap);
n = strlen(cp);
@ -165,8 +165,8 @@ _kvm_syserr(kd, program, fmt, va_alist)
void *
_kvm_malloc(kd, n)
register kvm_t *kd;
register size_t n;
kvm_t *kd;
size_t n;
{
void *p;
@ -213,7 +213,7 @@ Read(kd, fd, buf, nbytes)
static kvm_t *
_kvm_open(kd, uf, mf, sf, flag, errout)
register kvm_t *kd;
kvm_t *kd;
const char *uf;
const char *mf;
const char *sf;
@ -638,7 +638,7 @@ kvm_openfiles(uf, mf, sf, flag, errout)
int flag;
char *errout;
{
register kvm_t *kd;
kvm_t *kd;
if ((kd = malloc(sizeof(*kd))) == NULL) {
(void)strncpy(errout, strerror(errno), _POSIX2_LINE_MAX - 1);
@ -656,7 +656,7 @@ kvm_open(uf, mf, sf, flag, program)
int flag;
const char *program;
{
register kvm_t *kd;
kvm_t *kd;
if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
(void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
@ -670,7 +670,7 @@ int
kvm_close(kd)
kvm_t *kd;
{
register int error = 0;
int error = 0;
if (kd->pmfd >= 0)
error |= close(kd->pmfd);
@ -768,8 +768,8 @@ kvm_nlist(kd, nl)
kvm_t *kd;
struct nlist *nl;
{
register struct nlist *p;
register int nvalid, rv;
struct nlist *p;
int nvalid, rv;
/*
* If we can't use the data base, revert to the
@ -788,7 +788,7 @@ kvm_nlist(kd, nl)
*/
nvalid = 0;
for (p = nl; p->n_name && p->n_name[0]; ++p) {
register int len;
int len;
DBT rec;
if ((len = strlen(p->n_name)) > 4096) {
@ -862,12 +862,12 @@ kvm_t *kd;
ssize_t
kvm_read(kd, kva, buf, len)
kvm_t *kd;
register u_long kva;
register void *buf;
register size_t len;
u_long kva;
void *buf;
size_t len;
{
register int cc;
register void *cp;
int cc;
void *cp;
if (ISALIVE(kd)) {
/*
@ -934,11 +934,11 @@ kvm_read(kd, kva, buf, len)
ssize_t
kvm_write(kd, kva, buf, len)
kvm_t *kd;
register u_long kva;
register const void *buf;
register size_t len;
u_long kva;
const void *buf;
size_t len;
{
register int cc;
int cc;
if (ISALIVE(kd)) {
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_file.c,v 1.8 1997/08/15 17:52:45 drochner Exp $ */
/* $NetBSD: kvm_file.c,v 1.9 1998/02/03 19:12:42 perry Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: kvm_file.c,v 1.8 1997/08/15 17:52:45 drochner Exp $");
__RCSID("$NetBSD: kvm_file.c,v 1.9 1998/02/03 19:12:42 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -92,7 +92,7 @@ kvm_deadfiles(kd, op, arg, filehead_o, nfiles)
int buflen = kd->arglen, n = 0;
struct file *fp;
struct filelist filehead;
register char *where = kd->argspc;
char *where = kd->argspc;
/*
* first copyout filehead

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_mips.c,v 1.8 1997/10/20 19:43:26 jonathan Exp $ */
/* $NetBSD: kvm_mips.c,v 1.9 1998/02/03 19:12:43 perry Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm_mips.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: kvm_mips.c,v 1.8 1997/10/20 19:43:26 jonathan Exp $");
__RCSID("$NetBSD: kvm_mips.c,v 1.9 1998/02/03 19:12:43 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -135,7 +135,7 @@ _kvm_kvatop(kd, va, pa)
u_long va;
u_long *pa;
{
register struct vmstate *vm;
struct vmstate *vm;
u_long pte, addr, offset;
u_int pgshift, pg_v, pg_frame;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_proc.c,v 1.20 1997/08/15 17:52:46 drochner Exp $ */
/* $NetBSD: kvm_proc.c,v 1.21 1998/02/03 19:12:44 perry Exp $ */
/*-
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#else
__RCSID("$NetBSD: kvm_proc.c,v 1.20 1997/08/15 17:52:46 drochner Exp $");
__RCSID("$NetBSD: kvm_proc.c,v 1.21 1998/02/03 19:12:44 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -107,8 +107,8 @@ _kvm_uread(kd, p, va, cnt)
u_long va;
u_long *cnt;
{
register u_long addr, head;
register u_long offset;
u_long addr, head;
u_long offset;
struct vm_map_entry vme;
struct vm_object vmo;
int rv;
@ -333,7 +333,7 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
struct kinfo_proc *bp;
int maxcnt;
{
register int cnt = 0;
int cnt = 0;
struct eproc eproc;
struct pgrp pgrp;
struct session sess;
@ -458,8 +458,8 @@ kvm_deadprocs(kd, what, arg, a_allproc, a_zombproc, maxcnt)
u_long a_zombproc;
int maxcnt;
{
register struct kinfo_proc *bp = kd->procbase;
register int acnt, zcnt;
struct kinfo_proc *bp = kd->procbase;
int acnt, zcnt;
struct proc *p;
if (KREAD(kd, a_allproc, &p)) {
@ -596,14 +596,14 @@ static char **
kvm_argv(kd, p, addr, narg, maxcnt)
kvm_t *kd;
const struct proc *p;
register u_long addr;
register int narg;
register int maxcnt;
u_long addr;
int narg;
int maxcnt;
{
register char *np, *cp, *ep, *ap;
register u_long oaddr = -1;
register int len, cc;
register char **argv;
char *np, *cp, *ep, *ap;
u_long oaddr = -1;
int len, cc;
char **argv;
/*
* Check that there aren't an unreasonable number of agruments,
@ -665,9 +665,9 @@ kvm_argv(kd, p, addr, narg, maxcnt)
if (ep != 0)
cc = ep - cp + 1;
if (len + cc > kd->arglen) {
register int off;
register char **pp;
register char *op = kd->argspc;
int off;
char **pp;
char *op = kd->argspc;
kd->arglen *= 2;
kd->argspc = (char *)_kvm_realloc(kd, kd->argspc,
@ -760,8 +760,8 @@ kvm_doargv(kd, kp, nchr, info)
int nchr;
void (*info)(struct ps_strings *, u_long *, int *);
{
register const struct proc *p = &kp->kp_proc;
register char **ap;
const struct proc *p = &kp->kp_proc;
char **ap;
u_long addr;
int cnt;
struct ps_strings arginfo;
@ -816,17 +816,17 @@ kvm_getenvv(kd, kp, nchr)
ssize_t
kvm_uread(kd, p, uva, buf, len)
kvm_t *kd;
register const struct proc *p;
register u_long uva;
register char *buf;
register size_t len;
const struct proc *p;
u_long uva;
char *buf;
size_t len;
{
register char *cp;
char *cp;
cp = buf;
while (len > 0) {
register int cc;
register char *dp;
int cc;
char *dp;
u_long cnt;
dp = _kvm_uread(kd, p, uva, &cnt);

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_sparc.c,v 1.15 1997/10/10 13:11:50 mrg Exp $ */
/* $NetBSD: kvm_sparc.c,v 1.16 1998/02/03 19:12:44 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: kvm_sparc.c,v 1.15 1997/10/10 13:11:50 mrg Exp $");
__RCSID("$NetBSD: kvm_sparc.c,v 1.16 1998/02/03 19:12:44 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -155,7 +155,7 @@ _kvm_kvatop44c(kd, va, pa)
u_long va;
u_long *pa;
{
register int vr, vs, pte;
int vr, vs, pte;
cpu_kcore_hdr_t *cpup = kd->cpu_data;
struct segmap *sp, *segmaps;
int *ptes;
@ -188,7 +188,7 @@ _kvm_kvatop44c(kd, va, pa)
goto err;
pte = ptes[sp->sg_pmeg * nptesg + VA_VPG(va)];
if ((pte & PG_V) != 0) {
register long p, off = VA_OFF(va);
long p, off = VA_OFF(va);
p = (pte & PG_PFNUM) << pgshift;
*pa = p + off;
@ -206,7 +206,7 @@ _kvm_kvatop4m(kd, va, pa)
u_long *pa;
{
cpu_kcore_hdr_t *cpup = kd->cpu_data;
register int vr, vs;
int vr, vs;
int pte;
off_t foff;
struct segmap *sp, *segmaps;
@ -246,7 +246,7 @@ _kvm_kvatop4m(kd, va, pa)
}
if ((pte & SRMMU_TETYPE) == SRMMU_TEPTE) {
register long p, off = VA_OFF(va);
long p, off = VA_OFF(va);
p = (pte & SRMMU_PPNMASK) << SRMMU_PPNPASHIFT;
*pa = p + off;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_vax.c,v 1.6 1997/10/20 12:49:50 ragge Exp $ */
/* $NetBSD: kvm_vax.c,v 1.7 1998/02/03 19:12:45 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -77,7 +77,7 @@ int
_kvm_initvtop(kd)
kvm_t *kd;
{
register struct vmstate *vm;
struct vmstate *vm;
struct stat st;
struct nlist nlist[2];
@ -116,7 +116,7 @@ _kvm_kvatop(kd, va, pa)
u_long va;
u_long *pa;
{
register int end;
int end;
if (va < KERNBASE) {
_kvm_err(kd, 0, "invalid address (%x<%x)", va, KERNBASE);

View File

@ -1,4 +1,4 @@
/* $NetBSD: put.c,v 1.4 1997/01/23 14:03:07 mrg Exp $ */
/* $NetBSD: put.c,v 1.5 1998/02/03 19:12:47 perry Exp $ */
/* S/KEY v1.1b (put.c)
*
@ -2278,7 +2278,7 @@ static void
static void
standard (word)
register char *word;
char *word;
{
while (*word)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: skeysubr.c,v 1.10 1997/06/28 01:12:19 christos Exp $ */
/* $NetBSD: skeysubr.c,v 1.11 1998/02/03 19:12:48 perry Exp $ */
/* S/KEY v1.1b (skeysubr.c)
*
@ -43,7 +43,7 @@ char *passwd; /* Password, any length */
MD4_CTX md;
unsigned int buflen;
int i;
register int tmp;
int tmp;
u_int32_t hash[4];
buflen = strlen(seed) + strlen(passwd);
@ -87,7 +87,7 @@ f(x)
char *x;
{
MD4_CTX md;
register int tmp;
int tmp;
u_int32_t hash[4];
MD4Init(&md);
@ -210,10 +210,10 @@ trapped(sig)
*/
int
atob8(out, in)
register char *out, *in;
char *out, *in;
{
register int i;
register int val;
int i;
int val;
if (in == NULL || out == NULL)
return -1;
@ -237,9 +237,9 @@ atob8(out, in)
/* Convert 8-byte binary array to hex-ascii string */
int
btoa8(out, in)
register char *out, *in;
char *out, *in;
{
register int i;
int i;
if (in == NULL || out == NULL)
return -1;
@ -255,7 +255,7 @@ btoa8(out, in)
/* Convert hex digit to binary integer */
int
htoi(c)
register char c;
char c;
{
if ('0' <= c && c <= '9')
return c - '0';
@ -268,7 +268,7 @@ htoi(c)
char *
skipspace(cp)
register char *cp;
char *cp;
{
while (*cp == ' ' || *cp == '\t')
cp++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: tc3.c,v 1.2 1998/01/09 03:16:42 perry Exp $ */
/* $NetBSD: tc3.c,v 1.3 1998/02/03 19:12:49 perry Exp $ */
/*-
* Copyright (c) 1983, 1993
@ -86,7 +86,7 @@ main(argc, argv) char **argv; {
}
pr(p)
register char *p;
char *p;
{
for (; *p; p++)
printf("%s", rdchar(*p));
@ -101,7 +101,7 @@ char *rdchar(c)
char c;
{
static char ret[4];
register char *p = ret;
char *p = ret;
if ((c&0377) > 0177)
*p++ = '\'';