summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-08 14:19:15 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:20 +0200
commit823cd472b42c276a48bd368655f28dfa9ae7d430 (patch)
tree6c5359eeddda5c18acf006dade548cedc5b23a8d /source3/utils
parent720ba8e7e7463669bb4fc9d5a91387bafc9aec0f (diff)
downloadsamba-823cd472b42c276a48bd368655f28dfa9ae7d430.tar.gz
samba-823cd472b42c276a48bd368655f28dfa9ae7d430.tar.bz2
samba-823cd472b42c276a48bd368655f28dfa9ae7d430.zip
libsmbconf: Convert smbconf_get_share_names() 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 c0f6e08ec2..192088c6ba 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -466,7 +466,7 @@ static int net_conf_listshares(struct net_context *c,
struct smbconf_ctx *conf_ctx, int argc,
const char **argv)
{
- WERROR werr = WERR_OK;
+ sbcErr err;
int ret = -1;
uint32_t count, num_shares = 0;
char **share_names = NULL;
@@ -479,9 +479,9 @@ static int net_conf_listshares(struct net_context *c,
goto done;
}
- werr = smbconf_get_share_names(conf_ctx, mem_ctx, &num_shares,
- &share_names);
- if (!W_ERROR_IS_OK(werr)) {
+ err = smbconf_get_share_names(conf_ctx, mem_ctx, &num_shares,
+ &share_names);
+ if (!SBC_ERROR_IS_OK(err)) {
goto done;
}