]> git.ipfire.org Git - thirdparty/suricata.git/commit
src: fix deprecated-non-prototype compile warnings
authorVictor Julien <vjulien@oisf.net>
Tue, 17 Jan 2023 10:10:54 +0000 (11:10 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 24 Jan 2023 08:34:23 +0000 (09:34 +0100)
commit9664d9712991c34f6a8fd163573c07fb81c6d870
treeb6225443c54035779a6d4d2ea2c624dc6e67be6d
parent0a17103ab85bab1da380a9fd8057429fa408eab0
src: fix deprecated-non-prototype compile warnings

Tested on Fedora 37 with clang 15.

util-strlcatu.c:45:8: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
size_t strlcat(dst, src, siz)
           ^
1 error generated.

(cherry picked from commit 41ca206fdfa1a071d5bf18ae2a18e1e4cea583bd)
src/util-strlcatu.c
src/util-strlcpyu.c