projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updating the C++ exceptions file to build correctly.
[m6w6/libmemcached]
/
clients
/
execute.c
diff --git
a/clients/execute.c
b/clients/execute.c
index e623825c7ac313d615d9da1ba0e4fa347a6ac1bb..e25483392e2876e51b61b202c684a437bd23f423 100644
(file)
--- a/
clients/execute.c
+++ b/
clients/execute.c
@@
-3,7
+3,8
@@
Return the number of rows set.
*/
Return the number of rows set.
*/
-#include <stdio.h>
+#include "libmemcached/common.h"
+
#include "execute.h"
unsigned int execute_set(memcached_st *memc, pairs_st *pairs, unsigned int number_of)
#include "execute.h"
unsigned int execute_set(memcached_st *memc, pairs_st *pairs, unsigned int number_of)
@@
-45,7
+46,7
@@
unsigned int execute_get(memcached_st *memc, pairs_st *pairs, unsigned int numbe
uint32_t flags;
unsigned int fetch_key;
uint32_t flags;
unsigned int fetch_key;
- fetch_key= random() % number_of;
+ fetch_key=
(unsigned int)
random() % number_of;
value= memcached_get(memc, pairs[fetch_key].key, pairs[fetch_key].key_length,
&value_length, &flags, &rc);
value= memcached_get(memc, pairs[fetch_key].key, pairs[fetch_key].key_length,
&value_length, &flags, &rc);