$OpenBSD: patch-memcached_c,v 1.2 2005/08/06 20:37:47 alek Exp $ --- memcached.c.orig Tue Apr 5 02:10:26 2005 +++ memcached.c Sat Aug 6 22:11:20 2005 @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include /* some POSIX systems need the following definition * to get mlockall flags out of sys/mman.h. */ @@ -333,7 +333,7 @@ void process_stat(conn *c, char *command getrusage(RUSAGE_SELF, &usage); pos += sprintf(pos, "STAT pid %u\r\n", pid); - pos += sprintf(pos, "STAT uptime %lu\r\n", now - stats.started); + pos += sprintf(pos, "STAT uptime %u\r\n", now - stats.started); pos += sprintf(pos, "STAT time %ld\r\n", now); pos += sprintf(pos, "STAT version " VERSION "\r\n"); pos += sprintf(pos, "STAT rusage_user %ld.%06ld\r\n", usage.ru_utime.tv_sec, usage.ru_utime.tv_usec);