From aaf3aefe601def2a73856a6d8af57f6116e2616b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 17 Mar 2011 12:08:01 +0000 Subject: mandocmsg finally has no return value. --- main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 083b74ee..b8cb68e1 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.152 2011/03/17 08:49:34 kristaps Exp $ */ +/* $Id: main.c,v 1.153 2011/03/17 12:08:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -233,7 +233,7 @@ static void fdesc(struct curparse *); static void ffile(const char *, struct curparse *); static int pfile(const char *, struct curparse *); static int moptions(enum intt *, char *); -static int mmsg(enum mandocerr, void *, +static void mmsg(enum mandocerr, void *, int, int, const char *); static void pset(const char *, int, struct curparse *); static int toptions(struct curparse *, char *); @@ -1036,7 +1036,7 @@ woptions(struct curparse *curp, char *arg) return(1); } -static int +static void mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg) { struct curparse *cp; @@ -1049,7 +1049,7 @@ mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg) cp = (struct curparse *)arg; if (level < cp->wlevel) - return(1); + return; fprintf(stderr, "%s:%d:%d: %s: %s", cp->file, ln, col + 1, mandoclevels[level], mandocerrs[t]); @@ -1059,6 +1059,4 @@ mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg) if (cp->file_status < level) cp->file_status = level; - - return(level < MANDOCLEVEL_FATAL); } -- cgit v1.2.3