diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2015-01-16 06:40:12 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-16 18:24:48 +1100 |
commit | 2ae4f337b2a5fb2841b6b0053b49496fef844d1c (patch) | |
tree | 59aac6ef59be3975eb3a1251abb0be330c008cdd /readconf.c | |
parent | 3c4726f4c24118e8f1bb80bf75f1456c76df072c (diff) |
upstream commit
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 'readconf.c')
-rw-r--r-- | readconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c index a122d176d..cb61a5af0 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.227 2015/01/15 09:40:00 djm Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.228 2015/01/16 06:40:12 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -28,6 +28,7 @@ | |||
28 | #include <ctype.h> | 28 | #include <ctype.h> |
29 | #include <errno.h> | 29 | #include <errno.h> |
30 | #include <fcntl.h> | 30 | #include <fcntl.h> |
31 | #include <limits.h> | ||
31 | #include <netdb.h> | 32 | #include <netdb.h> |
32 | #ifdef HAVE_PATHS_H | 33 | #ifdef HAVE_PATHS_H |
33 | # include <paths.h> | 34 | # include <paths.h> |