summaryrefslogtreecommitdiff
path: root/testapp.c
diff options
context:
space:
mode:
Diffstat (limited to 'testapp.c')
-rw-r--r--testapp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testapp.c b/testapp.c
index 9afcf39..d93f1e2 100644
--- a/testapp.c
+++ b/testapp.c
@@ -252,10 +252,10 @@ static enum test_return test_safe_strtol(void) {
static pid_t start_server(in_port_t *port_out, bool daemon) {
char environment[80];
snprintf(environment, sizeof(environment),
- "MEMCACHED_PORT_FILENAME=/tmp/ports.%u", getpid());
+ "MEMCACHED_PORT_FILENAME=/tmp/ports.%lu", (long)getpid());
char *filename= environment + strlen("MEMCACHED_PORT_FILENAME=");
char pid_file[80];
- snprintf(pid_file, sizeof(pid_file), "/tmp/pid.%u", getpid());
+ snprintf(pid_file, sizeof(pid_file), "/tmp/pid.%lu", (long)getpid());
remove(filename);
remove(pid_file);