aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-06-05 02:00:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-06-05 02:00:26 +0000
commit8400486b39e9f57a03d2efe49cf8eab233476669 (patch)
tree05031258c9f3babdf621263c0a55031f2a2a2c0a /mansearch.h
parent91ed0105333c4ac483f7581f13a317c5560bdf58 (diff)
downloadmandoc-8400486b39e9f57a03d2efe49cf8eab233476669.tar.gz
mandoc-8400486b39e9f57a03d2efe49cf8eab233476669.tar.zst
mandoc-8400486b39e9f57a03d2efe49cf8eab233476669.zip
Some places used PATH_MAX from <limits.h>, some MAXPATHLEN from <sys/param.h>.
Consistently use the PATH_MAX since it is specified by POSIX, while MAXPATHLEN is not. In preparation for using this at a few more places.
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mansearch.h b/mansearch.h
index 8cfbc340..fc2dfe75 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -1,4 +1,4 @@
-/* $Id: mansearch.h,v 1.2 2012/06/09 14:11:16 kristaps Exp $ */
+/* $Id: mansearch.h,v 1.3 2013/06/05 02:00:26 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -61,7 +61,7 @@
__BEGIN_DECLS
struct manpage {
- char file[MAXPATHLEN]; /* prefixed by manpath */
+ char file[PATH_MAX]; /* prefixed by manpath */
char *desc; /* description of manpage */
int form; /* 0 == catpage */
};