Replace `(void*)0` with `NULL`.
authorFreeBirdLjj <ljj11011@mail.ustc.edu.cn>
Sat, 4 Oct 2014 12:31:26 +0000 (20:31 +0800)
committerFreeBirdLjj <ljj11011@mail.ustc.edu.cn>
Sat, 4 Oct 2014 12:31:26 +0000 (20:31 +0800)
src/parser.c
src/viewer.c

index 04a0b49..84f3c87 100644 (file)
@@ -181,8 +181,8 @@ deck_t *markdown_load(FILE *input) {
         }
 
         // split linked list
-        line->prev->next = (void*)0;
-        line->prev = (void*)0;
+        line->prev->next = NULL;
+        line->prev = NULL;
 
         // remove header lines from slide
         deck->slide->line = line;
index 747329c..4031948 100644 (file)
@@ -379,7 +379,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) {
             case 'q':
                 // do not fade out on exit
                 fade = 0;
-                slide = (void*)0;
+                slide = NULL;
                 break;
 
             default: