fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit 6939c9e0c241bb348c006d07ee423ed5aeb0e707
parent f774a4977fbc497b85417bcbc1fa9b3f3220164a
Author: jvoisin <julien.voisin@dustri.org>
Date:   Sun,  9 Jul 2023 12:27:12 +0200

Fix a couple of warnings

Diffstat:
Mtests/Makefile | 1-
Mtests/test_poll.c | 2+-
Mtests/test_ppoll.c | 2+-
3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile b/tests/Makefile @@ -3,7 +3,6 @@ CFLAGS=-I../include/ -D_FORTIFY_SOURCE=3 -static -O2 TARGETS= \ test_fgets \ test_bcopy_static_write \ - test_bcopy_dynamic_write \ test_bcopy_static_read \ test_bcopy_dynamic_read \ test_bcopy_dynamic_write \ diff --git a/tests/test_poll.c b/tests/test_poll.c @@ -9,6 +9,6 @@ int main(int argc, char** argv) { poll(buffer, 14, 0); CHK_FAIL_END - puts(buffer); + puts((const char*)buffer); return ret; } diff --git a/tests/test_ppoll.c b/tests/test_ppoll.c @@ -10,6 +10,6 @@ int main(int argc, char** argv) { ppoll(buffer, 14, NULL, NULL); CHK_FAIL_END - puts(buffer); + puts((const char*)buffer); return ret; }