add an extra level of indirection to main()
[gitweb.git] / test-parse-options.c
index 2c8c8f18edb46378b39c170b4ae6f7250ec631f5..7adae43b87a8e89652681b850e6e6d586ef30462 100644 (file)
@@ -30,7 +30,7 @@ static int number_callback(const struct option *opt, const char *arg, int unset)
        return 0;
 }
 
-int main(int argc, char **argv)
+int cmd_main(int argc, const char **argv)
 {
        const char *prefix = "prefix/";
        const char *usage[] = {