diff --git a/Makefile b/Makefile index 28a6bb6..d721405 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ OBJ = $(SRC:.c=.o) CC = gcc INCLUDE = . DEFINE = _GNU_SOURCE -CFLAGS = -g3 -Wextra -Wstrict-prototypes -Wall -ansi -pedantic -I$(INCLUDE) +CFLAGS = -DNDEBUG -g3 -Wextra -Wstrict-prototypes -Wall -ansi -pedantic -I$(INCLUDE) LIB = -lutil RM = rm -f diff --git a/test.c b/test.c index 3ef7bde..29b3d82 100644 --- a/test.c +++ b/test.c @@ -10,17 +10,16 @@ void disp(struct vt100_headless *vt100) { unsigned int y; - struct vt100_term *term; const char **lines; - term = vt100->term; - lines = vt100_dump(term); - for (y = 0; y < term->height; ++y) + lines = vt100_dump(vt100->term); + for (y = 0; y < vt100->term->height; ++y) { - write(1, lines[y], term->width); + write(1, lines[y], vt100->term->width); write(1, "\n", 1); } } + int main(int ac, char **av) { struct vt100_headless *vt100_headless;