From c2a26fe5e78bf5eaa7cc8fe929bb9546dc9c45bd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 26 Feb 2014 20:16:26 +0100 Subject: s3:utils: avoid argv related const warnings Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/utils/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils/status.c') diff --git a/source3/utils/status.c b/source3/utils/status.c index 1ff0e36ad33..40d38c9064f 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -336,7 +336,7 @@ static void print_notify_recs(const char *path, printf("\n"); } - int main(int argc, char *argv[]) +int main(int argc, const char *argv[]) { int c; int profile_only = 0; @@ -375,7 +375,7 @@ static void print_notify_recs(const char *path, goto done; } - pc = poptGetContext(NULL, argc, (const char **) argv, long_options, + pc = poptGetContext(NULL, argc, argv, long_options, POPT_CONTEXT_KEEP_FIRST); while ((c = poptGetNextOpt(pc)) != -1) { -- cgit