]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Add missing header to hlua_fcn.c
authorTim Duesterhus <tim@bastelstu.be>
Sat, 14 May 2022 20:17:25 +0000 (22:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 May 2022 09:40:33 +0000 (11:40 +0200)
Found with -Wmissing-prototypes:

    src/hlua_fcn.c:53:5: fatal error: no previous prototype for function 'hlua_checkboolean' [-Wmissing-prototypes]
    int hlua_checkboolean(lua_State *L, int index)
        ^
    src/hlua_fcn.c:53:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    int hlua_checkboolean(lua_State *L, int index)
    ^
    static
    1 error generated.

src/hlua_fcn.c

index 4c16d90a87cdebb0c65e7862e78b85c58adfc3ac..5907d48557bad17848f8097d9f2b434dc965f0d4 100644 (file)
@@ -26,6 +26,7 @@
 #include <haproxy/cli-t.h>
 #include <haproxy/errors.h>
 #include <haproxy/hlua-t.h>
+#include <haproxy/hlua_fcn.h>
 #include <haproxy/http.h>
 #include <haproxy/net_helper.h>
 #include <haproxy/pattern-t.h>