diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2015-01-16 07:40:12 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-16 08:24:48 +0100 |
commit | 2ae4f337b2a5fb2841b6b0053b49496fef844d1c (patch) | |
tree | 59aac6ef59be3975eb3a1251abb0be330c008cdd /atomicio.c | |
parent | upstream commit (diff) | |
download | openssh-2ae4f337b2a5fb2841b6b0053b49496fef844d1c.tar.xz openssh-2ae4f337b2a5fb2841b6b0053b49496fef844d1c.zip |
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 'atomicio.c')
-rw-r--r-- | atomicio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/atomicio.c b/atomicio.c index 2bac36c91..b1ec234f5 100644 --- a/atomicio.c +++ b/atomicio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atomicio.c,v 1.26 2010/09/22 22:58:51 djm Exp $ */ +/* $OpenBSD: atomicio.c,v 1.27 2015/01/16 06:40:12 deraadt Exp $ */ /* * Copyright (c) 2006 Damien Miller. All rights reserved. * Copyright (c) 2005 Anil Madhavapeddy. All rights reserved. @@ -41,6 +41,7 @@ #endif #include <string.h> #include <unistd.h> +#include <limits.h> #include "atomicio.h" |