diff options
author | Trond Norbye <Trond.Norbye@sun.com> | 2009-08-20 19:56:51 +0200 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-08-22 23:38:12 -0700 |
commit | 3fa313718559d7bb044511e4c8c5094d44bf0818 (patch) | |
tree | ed8e461cf4b1b6d106588152319fdb0a5fd5bbfb /testapp.c | |
parent | d747f593606d61e3bd60cb6ebb0144b05edb41cb (diff) | |
download | memcached-3fa313718559d7bb044511e4c8c5094d44bf0818.tar.gz |
Remove compilation errors from gcc on Solaris
Diffstat (limited to 'testapp.c')
-rw-r--r-- | testapp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |