netifd: Fix multiple -Wsign-compare warnings
[project/netifd.git] / main.c
diff --git a/main.c b/main.c
index 4c1c8554fbd6c305fa83dea572079171be548415..874dc8bd2215edf38016539801343e4f4e07f2de 100644 (file)
--- a/main.c
+++ b/main.c
@@ -303,8 +303,8 @@ int main(int argc, char **argv)
                        break;
                case 'l':
                        log_level = atoi(optarg);
-                       if (log_level >= ARRAY_SIZE(log_class))
-                               log_level = ARRAY_SIZE(log_class) - 1;
+                       if (log_level >= (int)ARRAY_SIZE(log_class))
+                               log_level = (int)ARRAY_SIZE(log_class) - 1;
                        break;
 #ifndef DUMMY_MODE
                case 'S':