commit | c9929380a41e313227429558686257cc2caa5431 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu May 12 11:52:27 2022 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Tue May 17 16:13:21 2022 +0200 |
tree | d85daa6bc6963b2bd99f216dcb2fbff53025dc82 | |
parent | 92202da2dabece43d47578fe6a330e3c0f357602 [diff] [blame] |
MINOR: applet: Change return value for .init callback function 0 is now returned on success and -1 on error.
diff --git a/addons/promex/service-prometheus.c b/addons/promex/service-prometheus.c index 8422e54..9501b1c 100644 --- a/addons/promex/service-prometheus.c +++ b/addons/promex/service-prometheus.c
@@ -1497,7 +1497,7 @@ { applet_reserve_svcctx(appctx, sizeof(struct promex_ctx)); appctx->st0 = PROMEX_ST_INIT; - return 1; + return 0; } /* The main I/O handler for the promex applet. */