]> granicus.if.org Git - psmisc/commitdiff
Now you're just getting picky.
authorquantumg <quantumg>
Wed, 26 Mar 2008 03:03:33 +0000 (03:03 +0000)
committerquantumg <quantumg>
Wed, 26 Mar 2008 03:03:33 +0000 (03:03 +0000)
src/peekfd.c

index 35efb7f2c03e786910598b7c34b429791053058f..64ee5465f2db08582955601f50ed076ea6d66f29 100644 (file)
@@ -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;