diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 12:08:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 12:08:01 +0000 |
commit | 48e82474c0df6d65c32335560fa351d80d53bf46 (patch) | |
tree | f12545f56138374aa3b9043485c4a782d8004b23 /main.c | |
parent | c9b2f541bb03d6ea693bb24850f1a6f88dfa2d36 (diff) | |
download | mandoc-48e82474c0df6d65c32335560fa351d80d53bf46.tar.gz |
mandocmsg finally has no return value.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); } |