From: Timo Sirainen Date: Thu, 5 Oct 2017 10:39:49 +0000 (+0300) Subject: dict-memcached: Response status may not be included in enum memcached_response X-Git-Tag: 2.3.0.rc1~899 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c97cf486720998159fd7d8988bbed1a2be3be1c1;p=thirdparty%2Fdovecot%2Fcore.git dict-memcached: Response status may not be included in enum memcached_response This helps at least static analyzers figure out that other statuses are possible, although unexpected. --- diff --git a/src/lib-dict/dict-memcached.c b/src/lib-dict/dict-memcached.c index 7775b983fe..fed3a8eab0 100644 --- a/src/lib-dict/dict-memcached.c +++ b/src/lib-dict/dict-memcached.c @@ -28,7 +28,7 @@ enum memcached_response { MEMCACHED_RESPONSE_NOTFOUND = 0x0001, MEMCACHED_RESPONSE_INTERNALERROR= 0x0084, MEMCACHED_RESPONSE_BUSY = 0x0085, - MEMCACHED_RESPONSE_TEMPFAILURE = 0x0086 + MEMCACHED_RESPONSE_TEMPFAILURE = 0x0086, }; struct memcached_connection { @@ -39,7 +39,7 @@ struct memcached_connection { struct { const unsigned char *value; size_t value_len; - enum memcached_response status; + uint16_t status; /* enum memcached_response */ bool reply_received; } reply; };