diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-16 06:40:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-16 06:40:24 +0000 |
commit | 315054f4737a39489e0a14f3a92bff61f1592832 (patch) | |
tree | 62bf010653374ce09b6beb4dfa0414a91457233b /usr.bin/talk | |
parent | 79e3d817585ca08a91e30ad14abe43e2ab70295f (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 'usr.bin/talk')
-rw-r--r-- | usr.bin/talk/get_names.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/talk/get_names.c b/usr.bin/talk/get_names.c index caf98634894..c4cd1d2858f 100644 --- a/usr.bin/talk/get_names.c +++ b/usr.bin/talk/get_names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: get_names.c,v 1.19 2010/08/12 23:31:29 tedu Exp $ */ +/* $OpenBSD: get_names.c,v 1.20 2015/01/16 06:40:13 deraadt Exp $ */ /* $NetBSD: get_names.c,v 1.4 1994/12/09 02:14:16 jtc Exp $ */ /* @@ -31,10 +31,10 @@ */ #include "talk.h" -#include <sys/param.h> #include <pwd.h> #include <stdlib.h> #include <unistd.h> +#include <limits.h> extern CTL_MSG msg; @@ -44,7 +44,7 @@ extern CTL_MSG msg; void get_names(int argc, char *argv[]) { - char hostname[MAXHOSTNAMELEN]; + char hostname[HOST_NAME_MAX+1]; char *his_name, *my_name; char *my_machine_name, *his_machine_name; char *his_tty; |