summaryrefslogtreecommitdiff
path: root/test-parse-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-parse-options.c')
-rw-r--r--test-parse-options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-parse-options.c b/test-parse-options.c
index 3c9510a701..434e8b8929 100644
--- a/test-parse-options.c
+++ b/test-parse-options.c
@@ -29,7 +29,7 @@ static int number_callback(const struct option *opt, const char *arg, int unset)
return 0;
}
-int main(int argc, const char **argv)
+int main(int argc, char **argv)
{
const char *prefix = "prefix/";
const char *usage[] = {
@@ -81,7 +81,7 @@ int main(int argc, const char **argv)
};
int i;
- argc = parse_options(argc, argv, prefix, options, usage, 0);
+ argc = parse_options(argc, (const char **)argv, prefix, options, usage, 0);
printf("boolean: %d\n", boolean);
printf("integer: %u\n", integer);