summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-01-17 15:03:09 +0000
committermillert <millert@openbsd.org>2015-01-17 15:03:09 +0000
commite21f32a3505ce9ef6fc3b07c24700084204b97a9 (patch)
tree1b7ef7bfe3c32a391b79e9ee751037968372851c
parentRemove unnecessary double-quotes inside [[]]. (diff)
downloadwireguard-openbsd-e21f32a3505ce9ef6fc3b07c24700084204b97a9.tar.xz
wireguard-openbsd-e21f32a3505ce9ef6fc3b07c24700084204b97a9.zip
Define MAXHOSTNAMELEN as HOST_NAME_MAX+1. OK deraadt@
-rw-r--r--sys/sys/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 43e94a320ed..72716125be4 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.109 2015/01/01 15:50:27 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.110 2015/01/17 15:03:09 millert Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -74,7 +74,7 @@
#define NOFILE OPEN_MAX /* max open files per process (soft) */
#define NOFILE_MAX 1024 /* max open files per process (hard) */
#define NOGROUP 65535 /* marker for empty group set member */
-#define MAXHOSTNAMELEN 256 /* max hostname size */
+#define MAXHOSTNAMELEN (HOST_NAME_MAX+1) /* max hostname size */
/* More types and definitions used throughout the kernel. */
#ifdef _KERNEL