Extend enumerations with the values used for error handling to silence more

clang warnings.
This commit is contained in:
mmdolze
2012-04-25 19:53:15 +00:00
parent 9e4c082fd0
commit bfd35b4dfc
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ menu_add_item_func(Client *c, int argc, char **argv)
/* Find menuitem type */
itemtype = menuitem_typename_to_type(argv[3]);
if (itemtype == -1) {
if (itemtype == MENUITEM_INVALID) {
sock_send_error(c->sock, "Invalid menuitem type\n");
return 0;
}