summaryrefslogtreecommitdiffstats
path: root/tests/test_fork_thread_deadlock.c
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2018-08-28 22:11:31 +0530
committerAndreas Schneider <asn@samba.org>2018-10-23 15:39:01 +0200
commit3d340c30517b90853318fe60ec239bf2bf789931 (patch)
tree1368163a946b4852d0430bbf28d003aa17f68fed /tests/test_fork_thread_deadlock.c
parent702f2fb52f90273b86ef6d1f117814bd08fcc542 (diff)
downloadsocket_wrapper-3d340c30517b90853318fe60ec239bf2bf789931.tar.gz
socket_wrapper-3d340c30517b90853318fe60ec239bf2bf789931.tar.xz
socket_wrapper-3d340c30517b90853318fe60ec239bf2bf789931.zip
tests: Fix -Wformat gcc warning
test_fork_thread_deadlock.c:48:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘pid_t {aka long int}’ [-Wformat=] Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'tests/test_fork_thread_deadlock.c')
-rw-r--r--tests/test_fork_thread_deadlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_fork_thread_deadlock.c b/tests/test_fork_thread_deadlock.c
index 6cd1ca0..7d4d4a7 100644
--- a/tests/test_fork_thread_deadlock.c
+++ b/tests/test_fork_thread_deadlock.c
@@ -45,7 +45,7 @@
static void test_swrap_signal_handler(int signum)
{
- fprintf(stderr, "PID: %d, SIGNUM: %d\n", getpid(), signum);
+ fprintf(stderr, "PID: %u, SIGNUM: %d\n", (unsigned int)getpid(), signum);
write(1, "DEADLOCK?\n", 10);
}