=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/lcmd2.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/window/Attic/lcmd2.c 1997/02/25 00:04:08 1.4 +++ src/usr.bin/window/Attic/lcmd2.c 2001/11/19 19:02:18 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: lcmd2.c,v 1.4 1997/02/25 00:04:08 downsj Exp $ */ +/* $OpenBSD: lcmd2.c,v 1.5 2001/11/19 19:02:18 mpech Exp $ */ /* $NetBSD: lcmd2.c,v 1.7 1995/09/29 00:44:04 cgd Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)lcmd2.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lcmd2.c,v 1.4 1997/02/25 00:04:08 downsj Exp $"; +static char rcsid[] = "$OpenBSD: lcmd2.c,v 1.5 2001/11/19 19:02:18 mpech Exp $"; #endif #endif /* not lint */ @@ -59,7 +59,7 @@ l_iostat(v, a) struct value *v, *a; { - register struct ww *w; + struct ww *w; if ((w = openiwin(16, "IO Statistics")) == 0) { error("Can't open statistics window: %s.", wwerror()); @@ -111,9 +111,9 @@ /*ARGSUSED*/ l_time(v, a) struct value *v; -register struct value *a; +struct value *a; { - register struct ww *w; + struct ww *w; struct rusage rusage; struct timeval timeval; char *strtime(); @@ -154,11 +154,11 @@ char * strtime(t) -register struct timeval *t; +struct timeval *t; { char fill = 0; static char buf[20]; - register char *p = buf; + char *p = buf; if (t->tv_sec > 60*60) { (void) sprintf(p, "%ld:", t->tv_sec / (60*60)); @@ -185,8 +185,8 @@ l_list(v, a) struct value *v, *a; { - register struct ww *w, *wp; - register i; + struct ww *w, *wp; + int i; int n; for (n = 0, i = 0; i < NWINDOW; i++) @@ -218,7 +218,7 @@ l_variable(v, a) struct value *v, *a; { - register struct ww *w; + struct ww *w; int printvar(); if ((w = openiwin(wwnrow - 3, "Variables")) == 0) { @@ -231,8 +231,8 @@ } printvar(w, r) -register struct ww *w; -register struct var *r; +struct ww *w; +struct var *r; { if (more(w, 0) == 2) return -1; @@ -259,8 +259,8 @@ l_def_shell(v, a) struct value *v, *a; { - register char **pp; - register struct value *vp; + char **pp; + struct value *vp; if (a->v_type == V_ERR) { if ((v->v_str = str_cpy(default_shellfile)) != 0) @@ -301,7 +301,7 @@ struct value *v, *a; { if (a->v_type == V_ERR) { - register struct ww *w; + struct ww *w; int printalias(); if ((w = openiwin(wwnrow - 3, "Aliases")) == 0) { @@ -312,7 +312,7 @@ waitnl(w); closeiwin(w); } else { - register struct alias *ap = 0; + struct alias *ap = 0; if (ap = alias_lookup(a->v_str)) { if ((v->v_str = str_cpy(ap->a_buf)) == 0) { @@ -322,10 +322,10 @@ v->v_type = V_STR; } if (a[1].v_type == V_STR) { - register struct value *vp; - register char *p, *q; + struct value *vp; + char *p, *q; char *str; - register n; + int n; for (n = 0, vp = a + 1; vp->v_type != V_ERR; vp++, n++) for (p = vp->v_str; *p; p++, n++) @@ -350,8 +350,8 @@ } printalias(w, a) -register struct ww *w; -register struct alias *a; +struct ww *w; +struct alias *a; { if (more(w, 0) == 2) return -1; @@ -381,7 +381,7 @@ /*ARGSUSED*/ l_echo(v, a) struct value *v; -register struct value *a; +struct value *a; { char buf[20]; struct ww *w;