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/profiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/utils/profiles.c') diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c index 30c6ad0a1f..442a7de018 100644 --- a/source3/utils/profiles.c +++ b/source3/utils/profiles.c @@ -194,7 +194,7 @@ static bool copy_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk, /********************************************************************* *********************************************************************/ -int main( int argc, char *argv[] ) +int main( int argc, const char *argv[] ) { TALLOC_CTX *frame = talloc_stackframe(); int opt; @@ -218,7 +218,7 @@ int main( int argc, char *argv[] ) setup_logging( "profiles", DEBUG_STDERR); - pc = poptGetContext("profiles", argc, (const char **)argv, long_options, + pc = poptGetContext("profiles", argc, argv, long_options, POPT_CONTEXT_KEEP_FIRST); poptSetOtherOptionHelp(pc, ""); -- cgit