tests: Correct return code handling
authorBryce Harrington <bryce@osg.samsung.com>
Sat, 10 Jan 2015 00:05:12 +0000 (16:05 -0800)
committerBryce Harrington <bryce@osg.samsung.com>
Tue, 27 Jan 2015 02:11:40 +0000 (18:11 -0800)
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
tests/test-runner.c

index 9abf22f..48e9a22 100644 (file)
@@ -255,13 +255,13 @@ is_debugger_attached(void)
 {
        int status;
        int rc;
-       int pid = fork();
+       pid_t pid = fork();
 
        if (pid == -1)
                return 0;
 
        if (pid == 0) {
-               int ppid = getppid();
+               pid_t ppid = getppid();
                if (ptrace(PTRACE_ATTACH, ppid, NULL, NULL) == 0) {
                        waitpid(ppid, NULL, 0);
                        ptrace(PTRACE_CONT, NULL, NULL);