aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoclint.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-06 14:13:47 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-06 14:13:47 +0000
commit236dae9fb3183b9c1d8bc6f77614797d65800987 (patch)
tree21d3944488650e4b2b02aa011f1ec70b538620f5 /mdoclint.c
parent898c9b0f76e9e166aa032a9d01aac9500a114b31 (diff)
downloadmandoc-236dae9fb3183b9c1d8bc6f77614797d65800987.tar.gz
mandoc-236dae9fb3183b9c1d8bc6f77614797d65800987.tar.zst
mandoc-236dae9fb3183b9c1d8bc6f77614797d65800987.zip
Strings abstracted into dynamically-created C files.
Added -V option. Deprecated README files.
Diffstat (limited to 'mdoclint.c')
-rw-r--r--mdoclint.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoclint.c b/mdoclint.c
index b7247c12..c22a9911 100644
--- a/mdoclint.c
+++ b/mdoclint.c
@@ -1,4 +1,4 @@
- /* $Id: mdoclint.c,v 1.1 2009/02/23 13:05:06 kristaps Exp $ */
+ /* $Id: mdoclint.c,v 1.2 2009/03/06 14:13:47 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -28,12 +28,14 @@ int
main(int argc, char *argv[])
{
struct mmain *p;
+ int c;
const struct mdoc *mdoc;
p = mmain_alloc();
- if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))
- mmain_exit(p, 1);
+ c = mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL);
+ if (1 != c)
+ mmain_exit(p, -1 == c ? 1 : 0);
if (NULL == (mdoc = mmain_mdoc(p)))
mmain_exit(p, 1);