diff options
author | Andreas Schneider <asn@samba.org> | 2011-04-07 17:19:03 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-05-10 19:13:20 +0200 |
commit | 29eea4b09ad2e99504f42a3c29195fb4757792dd (patch) | |
tree | 97bff20a1b7977b07e0576960cb1b3b4830dbec0 /source3/libnet | |
parent | b34e1768b762ae46e4fe761d9691ed09d285c9a9 (diff) | |
download | samba-29eea4b09ad2e99504f42a3c29195fb4757792dd.tar.gz samba-29eea4b09ad2e99504f42a3c29195fb4757792dd.tar.bz2 samba-29eea4b09ad2e99504f42a3c29195fb4757792dd.zip |
libsmbconf: Convert smbconf_init() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_join.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index b65bac907d..5f7f93e087 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -1456,10 +1456,12 @@ done: static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r) { WERROR werr; + sbcErr err; struct smbconf_ctx *ctx; - werr = smbconf_init_reg(r, &ctx, NULL); - if (!W_ERROR_IS_OK(werr)) { + err = smbconf_init_reg(r, &ctx, NULL); + if (!SBC_ERROR_IS_OK(err)) { + werr = WERR_NO_SUCH_SERVICE; goto done; } @@ -1502,10 +1504,12 @@ static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r) static WERROR do_unjoin_modify_vals_config(struct libnet_UnjoinCtx *r) { WERROR werr = WERR_OK; + sbcErr err; struct smbconf_ctx *ctx; - werr = smbconf_init_reg(r, &ctx, NULL); - if (!W_ERROR_IS_OK(werr)) { + err = smbconf_init_reg(r, &ctx, NULL); + if (!SBC_ERROR_IS_OK(err)) { + werr = WERR_NO_SUCH_SERVICE; goto done; } |