tabled: unsigned < 0
PATCH 6/7 tabled: unsigned < 0
Enums and sizeofs are unsigned. V. annoying because of int i;.
Signed-off-by Pete Zaitcev <[email protected]>
--- server/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
server/status.c +1 -1
@@ -74,7 +74,7 @@ static bool stat_err(struct client *cli,* We do not use all codes that the main server can return, * so our array is smaller and it has gaps. Must check, in case. */ -if (code <0 || code >=ARRAY_SIZE (err_info) || !err_info[code].code) { +if (code >=ARRAY_SIZE (err_info) || !err_info[code].code) {applog (LOG_INFO ,"client %s status error %d" , cli->addr_host, code); code = InternalError;