From: FreeBirdLjj Date: Sat, 4 Oct 2014 12:31:26 +0000 (+0800) Subject: Replace `(void*)0` with `NULL`. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=74ee02092252d171c59425ee5ed18636a97bba13;p=smdp.git Replace `(void*)0` with `NULL`. --- diff --git a/src/parser.c b/src/parser.c index 04a0b49..84f3c87 100644 --- a/src/parser.c +++ b/src/parser.c @@ -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; diff --git a/src/viewer.c b/src/viewer.c index 747329c..4031948 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -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: