From: Andrej Kruták Date: Thu, 14 Jun 2012 12:33:49 +0000 (+1000) Subject: Fix pwdx argument parsing X-Git-Tag: v3.3.4~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=138701c499ce118d00e5b67ff37cdc1bcf319a21;p=procps-ng 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 --- 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;