summaryrefslogtreecommitdiff
path: root/testapp.c
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-08-20 19:56:51 +0200
committerDustin Sallings <dustin@spy.net>2009-08-22 23:38:12 -0700
commit3fa313718559d7bb044511e4c8c5094d44bf0818 (patch)
treeed8e461cf4b1b6d106588152319fdb0a5fd5bbfb /testapp.c
parentd747f593606d61e3bd60cb6ebb0144b05edb41cb (diff)
downloadmemcached-3fa313718559d7bb044511e4c8c5094d44bf0818.tar.gz
Remove compilation errors from gcc on Solaris
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);