projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Changed memcached_servers_parse() to take const
[m6w6/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index 6c6bea645c4da1376069b70ef387e48a97447ccf..49ae022a318341de3fd5e7e763512ea6d3c32b37 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-2,7
+2,6
@@
Sample test application.
*/
#include <assert.h>
Sample test application.
*/
#include <assert.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
@@
-15,7
+14,7
@@
#include "test.h"
#include "test.h"
-long int timedif(struct timeval a, struct timeval b)
+
static
long int timedif(struct timeval a, struct timeval b)
{
register int us, s;
{
register int us, s;
@@
-45,6
+44,8
@@
int main(int argc, char *argv[])
if (world.create)
world_ptr= world.create();
if (world.create)
world_ptr= world.create();
+ else
+ world_ptr= NULL;
startup_ptr= (server_startup_st *)world_ptr;
servers= (memcached_server_st *)startup_ptr->servers;
startup_ptr= (server_startup_st *)world_ptr;
servers= (memcached_server_st *)startup_ptr->servers;