Change a (defaulted) int arg to a long so that a cast from a pointer

doesn't throw anything away. I don't want to re-code the app, just
port it!
This commit is contained in:
John Birrell
1998-02-20 19:59:59 +00:00
parent 9ddaa53328
commit f2af83ab9e
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -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 {
+1
View File
@@ -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;