[master] 2e46df72d vcurses: ignore initsrc return value

Nils Goroll nils.goroll at uplex.de
Fri Feb 7 21:49:09 UTC 2025


commit 2e46df72d174d20948ba21f4003a22c878c7db2b
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Feb 7 21:36:15 2025 +0100

    vcurses: ignore initsrc return value
    
    it is of type WINDOW, so we should not use AC()

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index df40ae91b..2136b5192 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -369,7 +369,7 @@ do_curses(void *arg)
 	int ch;
 	(void)arg;
 
-	initscr();
+	(void)initscr();
 	AC(raw());
 	AC(noecho());
 	AC(nonl());
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 6938fbdb3..14f5b0cb1 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -1153,7 +1153,7 @@ do_curses(struct vsm *vsm, struct vsc *vsc)
 
 	verbosity = VSC_ChangeLevel(NULL, 0);
 
-	initscr();
+	(void)initscr();
 	raw();
 	noecho();
 	nonl();


More information about the varnish-commit mailing list