summaryrefslogtreecommitdiffstats
path: root/procname.c
diff options
context:
space:
mode:
authorderaadt <deraadt>2015-01-16 06:40:13 +0000
committerderaadt <deraadt>2015-01-16 06:40:13 +0000
commit776eef49d8e13b227d25e5d56d4c379b89c4aacb (patch)
tree7fa5c0436b865e6868943d2f6edf72fa3508192d /procname.c
parent6e764fb53e7665d723d0ac58ec32c5b608f9c713 (diff)
Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Diffstat (limited to 'procname.c')
-rw-r--r--procname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procname.c b/procname.c
index 7ee076e7..97a78d71 100644
--- a/procname.c
+++ b/procname.c
@@ -16,7 +16,8 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
#include <sys/proc.h>
#include <sys/sysctl.h>
#include <sys/stat.h>