summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--memcached.h2
-rw-r--r--thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/memcached.h b/memcached.h
index 22893f5..9cab089 100644
--- a/memcached.h
+++ b/memcached.h
@@ -713,7 +713,7 @@ void sidethread_conn_close(conn *c);
/* Lock wrappers for cache functions that are called from main loop. */
enum delta_result_type add_delta(conn *c, const char *key,
- const size_t nkey, const int incr,
+ const size_t nkey, bool incr,
const int64_t delta, char *buf,
uint64_t *cas);
void accept_new_conns(const bool do_accept);
diff --git a/thread.c b/thread.c
index d17a387..ee18428 100644
--- a/thread.c
+++ b/thread.c
@@ -625,7 +625,7 @@ void item_unlink(item *item) {
* Does arithmetic on a numeric item value.
*/
enum delta_result_type add_delta(conn *c, const char *key,
- const size_t nkey, int incr,
+ const size_t nkey, bool incr,
const int64_t delta, char *buf,
uint64_t *cas) {
enum delta_result_type ret;