]> git.cameronkatri.com Git - mandoc.git/blobdiff - manpage.c
If no output device was allocated because no file wanted to produce output,
[mandoc.git] / manpage.c
index dda6089c0ac1b95e932a900bf487daa34716a0d7..882917b5d0a8dd53c13b20dea66f5101835b56e7 100644 (file)
--- a/manpage.c
+++ b/manpage.c
@@ -1,4 +1,4 @@
-/*     $Id: manpage.c,v 1.11 2015/03/27 17:37:25 schwarze Exp $ */
+/*     $Id: manpage.c,v 1.12 2015/10/06 18:32:19 schwarze Exp $ */
 /*
  * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -99,12 +99,12 @@ main(int argc, char *argv[])
 
        if (0 == sz) {
                free(res);
-               return(EXIT_FAILURE);
+               return EXIT_FAILURE;
        } else if (1 == sz && term) {
                i = 1;
                goto show;
        } else if (NULL == res)
-               return(EXIT_FAILURE);
+               return EXIT_FAILURE;
 
        for (i = 0; i < sz; i++) {
                printf("%6zu  %s: %s\n",
@@ -117,7 +117,7 @@ main(int argc, char *argv[])
                for (i = 0; i < sz; i++)
                        free(res[i].file);
                free(res);
-               return(EXIT_SUCCESS);
+               return EXIT_SUCCESS;
        }
 
        i = 1;
@@ -135,7 +135,7 @@ main(int argc, char *argv[])
                for (i = 0; i < sz; i++)
                        free(res[i].file);
                free(res);
-               return(EXIT_SUCCESS);
+               return EXIT_SUCCESS;
        }
 show:
        cmd = res[i - 1].form ? "mandoc" : "cat";
@@ -154,7 +154,7 @@ usage:
                                  "[-s section] "
                                  "expr ...\n",
                                  progname);
-       return(EXIT_FAILURE);
+       return EXIT_FAILURE;
 }
 
 static void