summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2000-04-01 10:13:27 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2000-04-01 10:13:27 +0000
commit8dbd916133ef93664742e5e501e51df9833f95b4 (patch)
tree65c410eb5ae42e30356630e3a72d372ae7b11850 /sys
parent8d9c38ddaa8e6c9c8ac6841eaf5c30e3d3b564d2 (diff)
define and use SYS_NMLN. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/utsname.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/sys/utsname.h b/sys/sys/utsname.h
index 4387567268e..5359390cc52 100644
--- a/sys/sys/utsname.h
+++ b/sys/sys/utsname.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: utsname.h,v 1.2 1996/03/03 12:12:43 niklas Exp $ */
+/* $OpenBSD: utsname.h,v 1.3 2000/04/01 10:13:26 jakob Exp $ */
/* $NetBSD: utsname.h,v 1.6 1994/06/29 06:46:11 cgd Exp $ */
/*-
@@ -42,12 +42,14 @@
#ifndef _SYS_UTSNAME_H
#define _SYS_UTSNAME_H
+#define SYS_NMLN 256
+
struct utsname {
- char sysname[256]; /* Name of this OS. */
- char nodename[256]; /* Name of this network node. */
- char release[256]; /* Release level. */
- char version[256]; /* Version level. */
- char machine[256]; /* Hardware type. */
+ char sysname[SYS_NMLN]; /* Name of this OS. */
+ char nodename[SYS_NMLN]; /* Name of this network node. */
+ char release[SYS_NMLN]; /* Release level. */
+ char version[SYS_NMLN]; /* Version level. */
+ char machine[SYS_NMLN]; /* Hardware type. */
};
#include <sys/cdefs.h>