aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-12-23 17:26:22 +0100
committerMarc André Tanner <mat@brain-dump.org>2014-12-23 17:36:05 +0100
commit7154b8d77ea78396c44321a5e05614b0de02af22 (patch)
treebe497eafff20a2232e76cf5be09e9918324f228e
parent25a7a0e334ccb7df3cfda334c9427d1a7e688eae (diff)
downloadvis-7154b8d77ea78396c44321a5e05614b0de02af22.tar.gz
vis-7154b8d77ea78396c44321a5e05614b0de02af22.tar.xz
Fix compiler warnings
-rw-r--r--text.h10
-rw-r--r--vis.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/text.h b/text.h
index 9dc0974..1a2035d 100644
--- a/text.h
+++ b/text.h
@@ -21,11 +21,11 @@ typedef struct Text Text;
typedef struct Piece Piece;
typedef struct {
- const char const *start; /* begin of piece's data */
- const char const *end; /* pointer to the first byte after valid data i.e. [start, end) */
- const char const *text; /* current position within piece: start <= text < end */
- const Piece const *piece; /* internal state do not touch! */
- size_t pos; /* global position in bytes from start of file */
+ const char *start; /* begin of piece's data */
+ const char *end; /* pointer to the first byte after valid data i.e. [start, end) */
+ const char *text; /* current position within piece: start <= text < end */
+ const Piece *piece; /* internal state do not touch! */
+ size_t pos; /* global position in bytes from start of file */
} Iterator;
#define text_iterate(txt, it, pos) \
diff --git a/vis.c b/vis.c
index 135d112..873e48a 100644
--- a/vis.c
+++ b/vis.c
@@ -1674,7 +1674,7 @@ static void setup() {
char *term = getenv("TERM");
if (!term)
term = DEFAULT_TERM;
- if (!newterm(term, stderr, stdin) == ERR)
+ if (!newterm(term, stderr, stdin))
die("Can not initialize terminal\n");
start_color();
raw();