diff options
author | dormando <dormando@rydia.net> | 2014-04-28 00:13:02 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2016-06-23 21:35:38 -0700 |
commit | 181ef834151a37587faf2ee59079af1b8cf610af (patch) | |
tree | d98650b46db4f943198b7edb5a792d49833c03d8 /items.h | |
parent | a1d04fbafc575ed711b5b2a399bb76a3be4b52c0 (diff) | |
download | memcached-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |