From 8141093cd0ecbda3e91dbd7814b50c94a518c35c Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 21 Apr 2016 21:33:43 +0000 Subject: [PATCH] tests/xetpgid.c: print syscall() result using %ld format --- tests/xetpgid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/xetpgid.c b/tests/xetpgid.c index f6bf6406..59f8153d 100644 --- a/tests/xetpgid.c +++ b/tests/xetpgid.c @@ -40,14 +40,14 @@ int main(void) { const int pid = getpid(); - int rc = syscall(__NR_getpgid, - (unsigned long) 0xffffffff00000000 | pid); - printf("getpgid(%d) = %d\n", pid, rc); + long rc = syscall(__NR_getpgid, + (unsigned long) 0xffffffff00000000 | pid); + printf("getpgid(%d) = %ld\n", pid, rc); rc = syscall(__NR_setpgid, (unsigned long) 0xffffffff00000000, (unsigned long) 0xffffffff00000000 | pid); - printf("setpgid(0, %d) = %d\n", pid, rc); + printf("setpgid(0, %d) = %ld\n", pid, rc); puts("+++ exited with 0 +++"); return 0; -- 2.50.1