summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-08 10:40:02 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:20 +0200
commit720ba8e7e7463669bb4fc9d5a91387bafc9aec0f (patch)
tree1dc38c8eac90a803b0618d78cd11d84c3eb54270 /source3/utils
parent9082c7cee8805281d18bd9f2f0afed4260ee95a8 (diff)
downloadsamba-720ba8e7e7463669bb4fc9d5a91387bafc9aec0f.tar.gz
samba-720ba8e7e7463669bb4fc9d5a91387bafc9aec0f.tar.bz2
samba-720ba8e7e7463669bb4fc9d5a91387bafc9aec0f.zip
libsmbconf: Convert smbconf_drop() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 9ed19f1fdb..c0f6e08ec2 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -393,8 +393,7 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx,
goto cancel;
}
if (!c->opt_testmode) {
- werr = smbconf_drop(conf_ctx);
- if (!W_ERROR_IS_OK(werr)) {
+ if (!SBC_ERROR_IS_OK(smbconf_drop(conf_ctx))) {
goto cancel;
}
}
@@ -502,17 +501,17 @@ static int net_conf_drop(struct net_context *c, struct smbconf_ctx *conf_ctx,
int argc, const char **argv)
{
int ret = -1;
- WERROR werr;
+ sbcErr err;
if (argc != 0 || c->display_usage) {
net_conf_drop_usage(c, argc, argv);
goto done;
}
- werr = smbconf_drop(conf_ctx);
- if (!W_ERROR_IS_OK(werr)) {
+ err = smbconf_drop(conf_ctx);
+ if (!SBC_ERROR_IS_OK(err)) {
d_fprintf(stderr, _("Error deleting configuration: %s\n"),
- win_errstr(werr));
+ sbcErrorString(err));
goto done;
}