Commit e4bf3933 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't assert good returns from ncurses for now.

Fixes: #741



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5100 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5918a9e1
...@@ -52,7 +52,11 @@ SVNID("$Id$") ...@@ -52,7 +52,11 @@ SVNID("$Id$")
#include "varnishapi.h" #include "varnishapi.h"
#include "varnishstat.h" #include "varnishstat.h"
#if 0
#define AC(x) assert((x) != ERR) #define AC(x) assert((x) != ERR)
#else
#define AC(x) x
#endif
struct pt { struct pt {
VTAILQ_ENTRY(pt) next; VTAILQ_ENTRY(pt) next;
...@@ -202,13 +206,13 @@ do_curses(struct VSM_data *vd, const struct vsc_main *VSC_main, ...@@ -202,13 +206,13 @@ do_curses(struct VSM_data *vd, const struct vsc_main *VSC_main,
line = 3; line = 3;
VTAILQ_FOREACH(pt, &pthead, next) { VTAILQ_FOREACH(pt, &pthead, next) {
if (line >= LINES)
break;
ju = *pt->ptr; ju = *pt->ptr;
if (ju == 0 && !pt->seen) if (ju == 0 && !pt->seen)
continue; continue;
pt->seen = 1; pt->seen = 1;
line++; line++;
if (line >= LINES)
break;
if (pt->type == 'a') { if (pt->type == 'a') {
AC(mvprintw(line, 0, AC(mvprintw(line, 0,
"%12ju %12.2f %12.2f %s\n", "%12ju %12.2f %12.2f %s\n",
......
...@@ -54,7 +54,11 @@ SVNID("$Id$") ...@@ -54,7 +54,11 @@ SVNID("$Id$")
#include "vsl.h" #include "vsl.h"
#include "varnishapi.h" #include "varnishapi.h"
#if 0
#define AC(x) assert((x) != ERR) #define AC(x) assert((x) != ERR)
#else
#define AC(x) x
#endif
struct top { struct top {
uint8_t tag; uint8_t tag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment