From 629c2ebaa4c6238348886b3924fa9e9eb18f8489 Mon Sep 17 00:00:00 2001 From: FreeBirdLjj Date: Sun, 5 Oct 2014 00:26:27 +0800 Subject: [PATCH] Unify the coding style for `return`. --- src/main.c | 2 +- src/viewer.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.20.1