diff options
| author | Andreas Schneider <asn@samba.org> | 2020-03-24 08:53:55 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2020-03-24 09:00:41 +0100 |
| commit | 2ba55b1f7f4d476ef7ba85f3f171b6d0881096ab (patch) | |
| tree | 7f874ff94830a3f9401baebc827dddafabd95b8f | |
| parent | 43578b9a28184086cbdef4a257db808e2992b162 (diff) | |
| download | socket_wrapper-2ba55b1f7f4d476ef7ba85f3f171b6d0881096ab.tar.gz socket_wrapper-2ba55b1f7f4d476ef7ba85f3f171b6d0881096ab.tar.xz socket_wrapper-2ba55b1f7f4d476ef7ba85f3f171b6d0881096ab.zip | |
tests: Fix a compile warning on Ubuntu
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
| -rw-r--r-- | tests/test_fork_thread_deadlock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_fork_thread_deadlock.c b/tests/test_fork_thread_deadlock.c index 7d4d4a7..de54d1e 100644 --- a/tests/test_fork_thread_deadlock.c +++ b/tests/test_fork_thread_deadlock.c @@ -45,8 +45,10 @@ static void test_swrap_signal_handler(int signum) { + ssize_t w; fprintf(stderr, "PID: %u, SIGNUM: %d\n", (unsigned int)getpid(), signum); - write(1, "DEADLOCK?\n", 10); + w = write(1, "DEADLOCK?\n", 10); + fprintf(stderr, "WRITE: %zu\n", w); } static void test_swrap_fork_pthread(void **state) |
