diff options
| author | 2015-01-16 06:39:28 +0000 | |
|---|---|---|
| committer | 2015-01-16 06:39:28 +0000 | |
| commit | b9fc9a728fce9c4289b7e9a992665e28d5629a54 (patch) | |
| tree | 72b2433e418dfa1aef5fcf8305617b97979a25d8 /usr.bin/mail/def.h | |
| parent | improve checksum parsing slightly. now handles filenames with spaces. (diff) | |
| download | wireguard-openbsd-b9fc9a728fce9c4289b7e9a992665e28d5629a54.tar.xz wireguard-openbsd-b9fc9a728fce9c4289b7e9a992665e28d5629a54.zip | |
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 'usr.bin/mail/def.h')
| -rw-r--r-- | usr.bin/mail/def.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mail/def.h b/usr.bin/mail/def.h index 322be15ad85..17bdaf54eb5 100644 --- a/usr.bin/mail/def.h +++ b/usr.bin/mail/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.13 2003/06/25 15:13:32 millert Exp $ */ +/* $OpenBSD: def.h,v 1.14 2015/01/16 06:40:09 deraadt Exp $ */ /* $NetBSD: def.h,v 1.9 1996/12/28 07:11:00 tls Exp $ */ /* @@ -30,7 +30,7 @@ * SUCH DAMAGE. * * @(#)def.h 8.4 (Berkeley) 4/20/95 - * $OpenBSD: def.h,v 1.13 2003/06/25 15:13:32 millert Exp $ + * $OpenBSD: def.h,v 1.14 2015/01/16 06:40:09 deraadt Exp $ */ /* @@ -42,7 +42,6 @@ #ifndef MAIL_DEF_H #define MAIL_DEF_H -#include <sys/param.h> #include <sys/stat.h> #include <sys/time.h> @@ -54,6 +53,7 @@ #include <string.h> #include <termios.h> #include <unistd.h> +#include <limits.h> #include <vis.h> #include "pathnames.h" @@ -61,7 +61,7 @@ #define ESCAPE '~' /* Default escape for sending */ #define NMLSIZE 1024 /* max names in a message list */ -#define PATHSIZE MAXPATHLEN /* Size of pathnames throughout */ +#define PATHSIZE PATH_MAX /* Size of pathnames throughout */ #define HSHSIZE 59 /* Hash size for aliases and vars */ #define LINESIZE BUFSIZ /* max readable line width */ #define STRINGSIZE ((unsigned) 128)/* Dynamic allocation units */ |
