diff options
author | Wayne Davison <wayned@samba.org> | 2011-10-08 09:15:36 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-10-08 09:15:36 -0700 |
commit | 3527677043f5a995b6a49e318d0f029ac187a97e (patch) | |
tree | 656f9c30b833525d2903cd094d2e7f29571bf674 /testrun.c | |
parent | fd91c3b6661dbd7453a143cad81ca08cd34b243b (diff) | |
download | rsync-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |