[master] 9434db5 More nitpickery to make OpenSolaris compile
Poul-Henning Kamp
phk at varnish-cache.org
Tue Mar 29 12:40:44 CEST 2011
commit 9434db579ee07c9b97a945d89d7578d8663ee4ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Mar 29 10:40:08 2011 +0000
More nitpickery to make OpenSolaris compile
Having printw() take a "char*" rather than "const char*" as fmt argument
feels sooo 1980 to me...
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index d00e0a6..8ce1690 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -224,10 +224,11 @@ do_curses(struct VSM_data *vd, const struct vsc_main *VSC_main,
(ju >> 24) & 0xffffffffffLL));
for (ch = 0x800000; ch; ch >>= 1)
if (ju & ch)
- AC(printw("V"));
+ AC(addstr("V"));
else
- AC(printw("_"));
- AC(printw(" %s", pt->name));
+ AC(addstr("_"));
+ AC(addstr(" "));
+ AC(addstr(pt->name));
} else {
AC(mvprintw(line, 0,
"%12ju %12s %12s %s\n",
More information about the varnish-commit
mailing list