commit | 862a0fe75aa1fe9d177def42a487fdb99facc73d | [log] [tgz] |
---|---|---|
author | Aurelien DARRAGON <adarragon@haproxy.com> | Wed Mar 29 10:46:36 2023 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri May 05 16:28:32 2023 +0200 |
tree | b7b31e09baa44f72f037c90a3896be789ec4faaa | |
parent | e7405d412484806aab0300bbf5b7bebf33263942 [diff] |
MINOR: hlua_fcn: fix Server.is_draining() return type Adjusting Server.is_draining() return type from integer to boolean to comply with the documentation.
diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c index ed016c0..639a1ef 100644 --- a/src/hlua_fcn.c +++ b/src/hlua_fcn.c
@@ -1068,7 +1068,7 @@ return 1; } - lua_pushinteger(L, server_is_draining(srv)); + lua_pushboolean(L, server_is_draining(srv)); return 1; }