diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-02-20 19:59:59 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-02-20 19:59:59 +0000 |
| commit | f2af83ab9e81533c1e2878265bc07b91abbc10dd (patch) | |
| tree | fd5fb7f107fbe3f6fcc39a2f7d9a7cee10d607f5 /usr.bin/window | |
| parent | 9ddaa53328167ba88bfe54df8072ed86654f05b2 (diff) | |
Notes
Diffstat (limited to 'usr.bin/window')
| -rw-r--r-- | usr.bin/window/lcmd2.c | 7 | ||||
| -rw-r--r-- | usr.bin/window/var.c | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/window/lcmd2.c b/usr.bin/window/lcmd2.c index 599cc98ea1df..6d9b0f274adb 100644 --- a/usr.bin/window/lcmd2.c +++ b/usr.bin/window/lcmd2.c @@ -39,7 +39,8 @@ static char sccsid[] = "@(#)lcmd2.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #include "defs.h" -#include "string.h" +#include <string.h> /* System string definitions. */ +#include "string.h" /* Local string definitions. */ #include "value.h" #include "var.h" #include "lcmd.h" @@ -221,7 +222,7 @@ struct value *v, *a; error("Can't open variable window: %s.", wwerror()); return; } - if (var_walk(printvar, (int)w) >= 0) + if (var_walk(printvar, (long)w) >= 0) waitnl(w); closeiwin(w); } @@ -304,7 +305,7 @@ l_alias(v, a) error("Can't open alias window: %s.", wwerror()); return; } - if (alias_walk(printalias, (int)w) >= 0) + if (alias_walk(printalias, (long)w) >= 0) waitnl(w); closeiwin(w); } else { diff --git a/usr.bin/window/var.c b/usr.bin/window/var.c index 638dc9556e9b..1deb402e7c43 100644 --- a/usr.bin/window/var.c +++ b/usr.bin/window/var.c @@ -147,6 +147,7 @@ register char *name; var_walk1(r, func, a) register struct var *r; int (*func)(); +long a; { if (r == 0) return 0; |
