Skip to contentSkip to conversation

tabled: unsigned < 0

PATCH Applied Pete Zaitcev 1 participant 1 message Apr 2, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 tabled: unsigned < 0

Enums and sizeofs are unsigned. V. annoying because of int i;.

---
 server/status.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
server/status.c +1 -1
diff -urp -X dontdiff tabled-m/server/status.c tabled-tip/server/status.c
@@ -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;