mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
net_conf: add casts to avoid compiler warnings.
Michael (This used to be commit 1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da)
This commit is contained in:
parent
0234cc8bdd
commit
3253cffced
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user