From 315054f4737a39489e0a14f3a92bff61f1592832 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 16 Jan 2015 06:40:24 +0000 Subject: Replace with and other less dirty headers where possible. Annotate 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) --- usr.bin/last/last.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/last') diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c index 44519264103..954ffbd6cfc 100644 --- a/usr.bin/last/last.c +++ b/usr.bin/last/last.c @@ -1,4 +1,4 @@ -/* $OpenBSD: last.c,v 1.44 2014/12/09 15:40:23 tedu Exp $ */ +/* $OpenBSD: last.c,v 1.45 2015/01/16 06:40:09 deraadt Exp $ */ /* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */ /* @@ -30,7 +30,6 @@ * SUCH DAMAGE. */ -#include #include #include @@ -45,6 +44,7 @@ #include #include #include +#include #include #define NO 0 /* false/no */ @@ -494,7 +494,7 @@ addtty(char *ttyname) void hostconv(char *arg) { - static char *hostdot, name[MAXHOSTNAMELEN]; + static char *hostdot, name[HOST_NAME_MAX+1]; static int first = 1; char *argdot; -- cgit v1.2.3