summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 12:08:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 12:08:01 +0000
commitaaf3aefe601def2a73856a6d8af57f6116e2616b (patch)
tree0d557c37bcebbec92ec640c9de794cf6d7c86f7f
parent6826c9275f2d9e9f18b49ffd5af619d3564cdd3e (diff)
downloadmandoc-aaf3aefe601def2a73856a6d8af57f6116e2616b.tar.gz
mandoc-aaf3aefe601def2a73856a6d8af57f6116e2616b.tar.zst
mandoc-aaf3aefe601def2a73856a6d8af57f6116e2616b.zip
mandocmsg finally has no return value.
-rw-r--r--main.c10
-rw-r--r--mandoc.h4
2 files changed, 6 insertions, 8 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
}
diff --git a/mandoc.h b/mandoc.h
index 447dbd55..0398f636 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.60 2011/03/17 09:16:38 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.61 2011/03/17 12:08:01 kristaps Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -328,7 +328,7 @@ enum mdelim {
DELIM_CLOSE
};
-typedef int (*mandocmsg)(enum mandocerr, void *,
+typedef void (*mandocmsg)(enum mandocerr, void *,
int, int, const char *);
__BEGIN_DECLS