summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2014-04-28 00:13:02 -0700
committerdormando <dormando@rydia.net>2016-06-23 21:35:38 -0700
commit181ef834151a37587faf2ee59079af1b8cf610af (patch)
treed98650b46db4f943198b7edb5a792d49833c03d8 /items.h
parenta1d04fbafc575ed711b5b2a399bb76a3be4b52c0 (diff)
downloadmemcached-181ef834151a37587faf2ee59079af1b8cf610af.tar.gz
treat and print item flags as unsigned int
most of the code would parse and handle flags as unsigned int, but passed into alloc functions as a signed int... which would then continue to print it as unsigned up until a change made in 2007. Now treat it fully as unsigned and print as unsigned.
Diffstat (limited to 'items.h')
-rw-r--r--items.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/items.h b/items.h
index 8add1ef..6d30aa2 100644
--- a/items.h
+++ b/items.h
@@ -2,7 +2,7 @@
uint64_t get_cas_id(void);
/*@null@*/
-item *do_item_alloc(char *key, const size_t nkey, const int flags, const rel_time_t exptime, const int nbytes, const uint32_t cur_hv);
+item *do_item_alloc(char *key, const size_t nkey, const unsigned int flags, const rel_time_t exptime, const int nbytes, const uint32_t cur_hv);
void item_free(item *it);
bool item_size_ok(const size_t nkey, const int flags, const int nbytes);