From 3253cffced724bc825da913e669b0331cbe7ac65 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 26 Mar 2008 14:45:34 +0100 Subject: net_conf: add casts to avoid compiler warnings. Michael (This used to be commit 1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da) --- source3/utils/net_conf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/utils/net_conf.c') diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index c21631dd5e..70827abfe1 100644 --- a/source3/utils/net_conf.c +++ b/source3/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; } -- cgit