From: Michael Adam Date: Wed, 26 Mar 2008 13:45:34 +0000 (+0100) Subject: net_conf: add casts to avoid compiler warnings. X-Git-Tag: samba-3.3.0pre1~3101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da;p=thirdparty%2Fsamba.git net_conf: add casts to avoid compiler warnings. Michael --- diff --git a/source/utils/net_conf.c b/source/utils/net_conf.c index c21631dd5ef..70827abfe18 100644 --- a/source/utils/net_conf.c +++ b/source/utils/net_conf.c @@ -262,8 +262,8 @@ static int net_conf_import(struct smbconf_ctx *conf_ctx, werr = import_process_service(conf_ctx, servicename, num_params, - param_names, - param_values); + (const char **)param_names, + (const char **)param_values); if (!W_ERROR_IS_OK(werr)) { goto done; } @@ -279,10 +279,10 @@ static int net_conf_import(struct smbconf_ctx *conf_ctx, } for (sidx = 0; sidx < num_shares; sidx++) { werr = import_process_service(conf_ctx, - share_names[sidx], - num_params[sidx], - param_names[sidx], - param_values[sidx]); + share_names[sidx], + num_params[sidx], + (const char **)param_names[sidx], + (const char **)param_values[sidx]); if (!W_ERROR_IS_OK(werr)) { goto done; }