The program is structured so that fatal errors cause exit() to be
called directly, rather than being passed up the stack; returning a
value here may mislead people into believing otherwise.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: George Dunlap <george.dunlap@cloud.com>
* monitor_tbufs - monitor the contents of tbufs and output to a file
* @logfile: the FILE * representing the file to log to
*/
-static int monitor_tbufs(void)
+static void monitor_tbufs(void)
{
int i;
free(data);
/* don't need to munmap - cleanup is automatic */
close(outfd);
-
- return 0;
}
int main(int argc, char **argv)
{
- int ret;
struct sigaction act;
opts.outfile = 0;
sigaction(SIGINT, &act, NULL);
sigaction(SIGALRM, &act, NULL);
- ret = monitor_tbufs();
+ monitor_tbufs();
- return ret;
+ return 0;
}
/*