diff options
Diffstat (limited to 'source3/utils/smbcquotas.c')
-rw-r--r-- | source3/utils/smbcquotas.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 2791b93424..cf382bc025 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -553,8 +553,9 @@ static struct cli_state *connect_one(const char *share) /**************************************************************************** main program ****************************************************************************/ - int main(int argc, const char *argv[]) +int main(int argc, char *argv[]) { + const char **argv_const = discard_const_p(const char *, argv); char *share; int opt; int result; @@ -609,7 +610,7 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" }, } popt_common_set_auth_info(smbcquotas_auth_info); - pc = poptGetContext("smbcquotas", argc, argv, long_options, 0); + pc = poptGetContext("smbcquotas", argc, argv_const, long_options, 0); poptSetOtherOptionHelp(pc, "//server1/share1"); |