From: quantumg Date: Wed, 26 Mar 2008 03:03:33 +0000 (+0000) Subject: Now you're just getting picky. X-Git-Tag: v22.11~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3d4e16542b2d691ac2aa4ca03ff77fe02d819a8;p=psmisc Now you're just getting picky. --- diff --git a/src/peekfd.c b/src/peekfd.c index 35efb7f..64ee546 100644 --- a/src/peekfd.c +++ b/src/peekfd.c @@ -105,7 +105,7 @@ void usage() { " Press CTRL-C to end output.\n")); } -int bufdiff(int pid, unsigned char *lastbuf, unsigned int addr, unsigned int len) { +int bufdiff(pid_t pid, unsigned char *lastbuf, unsigned int addr, unsigned int len) { int i; for (i = 0; i < len; i++) if (lastbuf[i] != (ptrace(PTRACE_PEEKTEXT, pid, addr + i, 0) & 0xff)) @@ -199,7 +199,7 @@ int main(int argc, char **argv) for(;;) { int status; - int pid = wait(&status); + pid_t pid = wait(&status); if (WIFSTOPPED(status)) { #ifdef PPC struct pt_regs regs;