summaryrefslogtreecommitdiff
path: root/testrun.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-10-08 09:15:36 -0700
committerWayne Davison <wayned@samba.org>2011-10-08 09:15:36 -0700
commit3527677043f5a995b6a49e318d0f029ac187a97e (patch)
tree656f9c30b833525d2903cd094d2e7f29571bf674 /testrun.c
parentfd91c3b6661dbd7453a143cad81ca08cd34b243b (diff)
downloadrsync-3527677043f5a995b6a49e318d0f029ac187a97e.tar.gz
Let's cast getpid() to an int instead of a long for snprintf().
Diffstat (limited to 'testrun.c')
-rw-r--r--testrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testrun.c b/testrun.c
index ddf596d3..049e3ebf 100644
--- a/testrun.c
+++ b/testrun.c
@@ -46,9 +46,9 @@
if (slept++ > timeout_secs) {
fprintf(stderr, "TESTRUN TIMEOUT: test took over %d seconds.\n", timeout_secs);
if (kill(pid, SIGTERM) < 0)
- fprintf(stderr, "TESTRUN ERROR: failed to kill pid %ld: %s\n", (long)pid, strerror(errno));
+ fprintf(stderr, "TESTRUN ERROR: failed to kill pid %d: %s\n", (int)pid, strerror(errno));
else
- fprintf(stderr, "TESTRUN INFO: killed pid %ld\n", (long)pid);
+ fprintf(stderr, "TESTRUN INFO: killed pid %d\n", (int)pid);
exit(1);
}
sleep(1);