-/* $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>
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",
for (i = 0; i < sz; i++)
free(res[i].file);
free(res);
- return(EXIT_SUCCESS);
+ return EXIT_SUCCESS;
}
i = 1;
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";
"[-s section] "
"expr ...\n",
progname);
- return(EXIT_FAILURE);
+ return EXIT_FAILURE;
}
static void