diff options
Diffstat (limited to 'lib/smbconf/smbconf.c')
-rw-r--r-- | lib/smbconf/smbconf.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/smbconf/smbconf.c b/lib/smbconf/smbconf.c index c3ba106d1c..54aaa22f6e 100644 --- a/lib/smbconf/smbconf.c +++ b/lib/smbconf/smbconf.c @@ -404,23 +404,22 @@ sbcErr smbconf_set_global_includes(struct smbconf_ctx *ctx, } -WERROR smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service) +sbcErr smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service) { return ctx->ops->delete_includes(ctx, service); } -WERROR smbconf_delete_global_includes(struct smbconf_ctx *ctx) +sbcErr smbconf_delete_global_includes(struct smbconf_ctx *ctx) { - WERROR werr; sbcErr err; err = smbconf_global_check(ctx); if (!SBC_ERROR_IS_OK(err)) { - return WERR_GENERAL_FAILURE; + return err; } - werr = smbconf_delete_includes(ctx, GLOBAL_NAME); + err = smbconf_delete_includes(ctx, GLOBAL_NAME); - return werr; + return err; } WERROR smbconf_transaction_start(struct smbconf_ctx *ctx) |