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 <csmall@enc.com.au>
This commit is contained in:
Andrej Kruták 2012-06-14 22:33:49 +10:00 committed by Craig Small
parent a5d9c40262
commit 138701c499

2
pwdx.c
View File

@ -63,7 +63,7 @@ int check_pid_argument(char *input)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
char ch; int ch;
int retval = 0, i; int retval = 0, i;
int alloclen = 128; int alloclen = 128;
char *pathbuf; char *pathbuf;