summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2020-01-20 10:29:32 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2020-01-20 10:29:32 +0000
commitc385348cf630caedd10ae29eabc4729eea2f3bc7 (patch)
tree42baa40a885b389eb6f940c7033896b8de9180f8 /usr.bin/mandoc/main.c
parenteef34739ecdaaaed09f3254f80e20045913e552b (diff)
Make the code more readable by introducing
symbolic constants for tagging priorities. This review also made me find a minor bug: do not upgrade TAG_FALLBACK to TAG_WEAK when there is trailing whitespace.
Diffstat (limited to 'usr.bin/mandoc/main.c')
-rw-r--r--usr.bin/mandoc/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c
index b508c6005c8..63ac156010b 100644
--- a/usr.bin/mandoc/main.c
+++ b/usr.bin/mandoc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.243 2019/07/28 19:41:01 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.244 2020/01/20 10:29:31 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -29,6 +29,7 @@
#include <errno.h>
#include <fcntl.h>
#include <glob.h>
+#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdint.h>