projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updating Patrick's C++ exceptions to build without warnings on solaris.
[m6w6/libmemcached]
/
clients
/
execute.c
diff --git
a/clients/execute.c
b/clients/execute.c
index a0e31ee9d51eab651a4e08cd269c2dc993ba15b7..e25483392e2876e51b61b202c684a437bd23f423 100644
(file)
--- a/
clients/execute.c
+++ b/
clients/execute.c
@@
-46,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= (unsigned int)
(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);