Extend enumerations with the values used for error handling to silence more
clang warnings.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user