From: FreeBirdLjj Date: Sat, 4 Oct 2014 16:26:27 +0000 (+0800) Subject: Unify the coding style for `return`. X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=commitdiff_plain;h=629c2ebaa4c6238348886b3924fa9e9eb18f8489 Unify the coding style for `return`. --- diff --git a/src/main.c b/src/main.c index ef86cdb..73bc4e0 100644 --- a/src/main.c +++ b/src/main.c @@ -123,5 +123,5 @@ int main(int argc, char *argv[]) { ncurses_display(deck, notrans, nofade, invert); - return(EXIT_SUCCESS); + return EXIT_SUCCESS; } diff --git a/src/viewer.c b/src/viewer.c index a82b0d0..a80be7b 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -113,7 +113,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { fprintf(stderr, "Error: Terminal width (%i columns) too small. Need at least %i columns.\n", COLS, i); fprintf(stderr, "You may need to shorten some lines by inserting line breaks.\n"); - return(1); + return 1; } // set max_cols @@ -149,7 +149,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { fprintf(stderr, "Error: Terminal heigth (%i lines) too small. Need at least %i lines.\n", LINES, max_lines + bar_top + bar_bottom); fprintf(stderr, "You may need to add additional horizontal rules ('***') to split your file in shorter slides.\n"); - return(1); + return 1; } // disable cursor @@ -395,7 +395,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { endwin(); - return(0); + return 0; } void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colors) {