]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua_fcn: fix Server.is_draining() return type
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 29 Mar 2023 08:46:36 +0000 (10:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
Adjusting Server.is_draining() return type from integer to boolean
to comply with the documentation.

src/hlua_fcn.c

index ed016c0b85c4a94f032ad7a3587a08c55b02a285..639a1ef0106acc1642a39231ff5fcb76f1608f80 100644 (file)
@@ -1068,7 +1068,7 @@ int hlua_server_is_draining(lua_State *L)
                return 1;
        }
 
-       lua_pushinteger(L, server_is_draining(srv));
+       lua_pushboolean(L, server_is_draining(srv));
        return 1;
 }