summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-11 16:01:22 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:22 +0200
commit72d15f0c03cd67d32feb51f41238401b38344907 (patch)
treedbaa7bc99be2cfb3199dbbf9e1e0d8d17d6572b3 /source3/utils
parentd911bafea695dc36d7952bd265dfe15a3e04ac7b (diff)
downloadsamba-72d15f0c03cd67d32feb51f41238401b38344907.tar.gz
samba-72d15f0c03cd67d32feb51f41238401b38344907.tar.bz2
samba-72d15f0c03cd67d32feb51f41238401b38344907.zip
libsmbconf: Convert smbconf_delete_includes() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 255f14c920..2d7fb7bbb4 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -1102,7 +1102,7 @@ static int net_conf_delincludes(struct net_context *c,
struct smbconf_ctx *conf_ctx,
int argc, const char **argv)
{
- WERROR werr;
+ sbcErr err;
char *service;
int ret = -1;
TALLOC_CTX *mem_ctx = talloc_stackframe();
@@ -1118,9 +1118,9 @@ static int net_conf_delincludes(struct net_context *c,
goto done;
}
- werr = smbconf_delete_includes(conf_ctx, service);
- if (!W_ERROR_IS_OK(werr)) {
- d_printf(_("error deleting includes: %s\n"), win_errstr(werr));
+ err = smbconf_delete_includes(conf_ctx, service);
+ if (!SBC_ERROR_IS_OK(err)) {
+ d_printf(_("error deleting includes: %s\n"), sbcErrorString(err));
goto done;
}