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