From 138701c499ce118d00e5b67ff37cdc1bcf319a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Krut=C3=A1k?= Date: Thu, 14 Jun 2012 22:33:49 +1000 Subject: [PATCH] Fix pwdx argument parsing On some architectures/gcc's, the pwdx tool doesn't compile right because of bad type of a variable. Afterwards pwdx can't be persuaded to work. Use int as the type, like the other tools (like pgrep) do. Signed-off-by: Craig Small --- pwdx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwdx.c b/pwdx.c index e83187c9..4aee389b 100644 --- a/pwdx.c +++ b/pwdx.c @@ -63,7 +63,7 @@ int check_pid_argument(char *input) int main(int argc, char *argv[]) { - char ch; + int ch; int retval = 0, i; int alloclen = 128; char *pathbuf;