diff options
author | 2005-02-25 03:12:43 +0000 | |
---|---|---|
committer | 2005-02-25 03:12:43 +0000 | |
commit | 1e5ede29f718fe4f17c128f8fde29ac3824349f1 (patch) | |
tree | fd6e65cd34239687cd19bb98f99ffdf5a9155023 /lib/libc/net | |
parent | Fix an obviously incorrect call to memset. '0' and 0 are not the same (diff) | |
download | wireguard-openbsd-1e5ede29f718fe4f17c128f8fde29ac3824349f1.tar.xz wireguard-openbsd-1e5ede29f718fe4f17c128f8fde29ac3824349f1.zip |
Be correct in our man pages when talking about NUL termination (that is,
termination with '\0') vs. null termination.
Input from krw@, jaredy@, jmc@. OK deraadt@
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/getrrsetbyname.3 | 4 | ||||
-rw-r--r-- | lib/libc/net/if_indextoname.3 | 6 | ||||
-rw-r--r-- | lib/libc/net/link_addr.3 | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/net/getrrsetbyname.3 b/lib/libc/net/getrrsetbyname.3 index 65a46357249..621ff31b815 100644 --- a/lib/libc/net/getrrsetbyname.3 +++ b/lib/libc/net/getrrsetbyname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getrrsetbyname.3,v 1.12 2004/07/10 05:34:21 jakob Exp $ +.\" $OpenBSD: getrrsetbyname.3,v 1.13 2005/02/25 03:12:43 cloder Exp $ .\" .\" Copyright (C) 2000, 2001 Internet Software Consortium. .\" @@ -36,7 +36,7 @@ gets a set of resource records associated with a and .Fa rdtype . .Fa hostname -is a pointer a to null-terminated string. +is a pointer to a NUL-terminated string. The .Fa flags field is currently unused and must be zero. diff --git a/lib/libc/net/if_indextoname.3 b/lib/libc/net/if_indextoname.3 index 30293dcdf2d..e7bfde4900f 100644 --- a/lib/libc/net/if_indextoname.3 +++ b/lib/libc/net/if_indextoname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: if_indextoname.3,v 1.7 2003/08/08 09:26:02 jmc Exp $ +.\" $OpenBSD: if_indextoname.3,v 1.8 2005/02/25 03:12:43 cloder Exp $ .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -72,7 +72,7 @@ returned. .Pf ( Dv IF_NAMESIZE is also defined in .Aq Pa net/if.h -and its value includes a terminating null byte at the end of the +and its value includes a terminating NUL byte at the end of the interface name.) This pointer is also the return value of the function. If there is no interface corresponding to the specified index, @@ -90,7 +90,7 @@ and is as follows: .Bd -literal -offset struct if_nameindex { unsigned int if_index; /* 1, 2, ... */ - char *if_name; /* null terminated name: "le0", ... */ + char *if_name; /* NUL-terminated name: "le0", ... */ }; .Ed .Pp diff --git a/lib/libc/net/link_addr.3 b/lib/libc/net/link_addr.3 index b34afafc7eb..0f8787e1914 100644 --- a/lib/libc/net/link_addr.3 +++ b/lib/libc/net/link_addr.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: link_addr.3,v 1.9 2004/07/15 23:40:39 jmc Exp $ +.\" $OpenBSD: link_addr.3,v 1.10 2005/02/25 03:12:43 cloder Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -90,7 +90,7 @@ represents an Ethernet address to be transmitted on the first Lance Ethernet interface. .Sh RETURN VALUES .Fn link_ntoa -always returns a null-terminated string. +always returns a NUL-terminated string. .Fn link_addr has no return value. (See |