]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net_conf: add casts to avoid compiler warnings.
authorMichael Adam <obnox@samba.org>
Wed, 26 Mar 2008 13:45:34 +0000 (14:45 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 26 Mar 2008 13:55:06 +0000 (14:55 +0100)
Michael

source/utils/net_conf.c

index c21631dd5ef384aeef249176c41413a07a8fb993..70827abfe18f2157252ab49bcc24870969b009dc 100644 (file)
@@ -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;
                        }