summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/if_indextoname.3
diff options
context:
space:
mode:
authorcloder <>2005-02-25 03:12:44 +0000
committercloder <>2005-02-25 03:12:44 +0000
commit67e61f91527f9a7cd6b9a16b0cd90dd56607d505 (patch)
treed9de936ffc7fa9289c7b7f61b1db414900ba94fa /src/lib/libc/net/if_indextoname.3
parent52fef3b7d084fa9e2d0ac9187917b0ede8d9d58d (diff)
downloadopenbsd-67e61f91527f9a7cd6b9a16b0cd90dd56607d505.tar.gz
openbsd-67e61f91527f9a7cd6b9a16b0cd90dd56607d505.tar.bz2
openbsd-67e61f91527f9a7cd6b9a16b0cd90dd56607d505.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 'src/lib/libc/net/if_indextoname.3')
-rw-r--r--src/lib/libc/net/if_indextoname.36
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/if_indextoname.3 b/src/lib/libc/net/if_indextoname.3
index 30293dcdf2..e7bfde4900 100644
--- a/src/lib/libc/net/if_indextoname.3
+++ b/src/lib/libc/net/if_indextoname.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: if_indextoname.3,v 1.7 2003/08/08 09:26:02 jmc Exp $ 1.\" $OpenBSD: if_indextoname.3,v 1.8 2005/02/25 03:12:43 cloder Exp $
2.\" Copyright (c) 1983, 1991, 1993 2.\" Copyright (c) 1983, 1991, 1993
3.\" The Regents of the University of California. All rights reserved. 3.\" The Regents of the University of California. All rights reserved.
4.\" 4.\"
@@ -72,7 +72,7 @@ returned.
72.Pf ( Dv IF_NAMESIZE 72.Pf ( Dv IF_NAMESIZE
73is also defined in 73is also defined in
74.Aq Pa net/if.h 74.Aq Pa net/if.h
75and its value includes a terminating null byte at the end of the 75and its value includes a terminating NUL byte at the end of the
76interface name.) 76interface name.)
77This pointer is also the return value of the function. 77This pointer is also the return value of the function.
78If there is no interface corresponding to the specified index, 78If there is no interface corresponding to the specified index,
@@ -90,7 +90,7 @@ and is as follows:
90.Bd -literal -offset 90.Bd -literal -offset
91struct if_nameindex { 91struct if_nameindex {
92 unsigned int if_index; /* 1, 2, ... */ 92 unsigned int if_index; /* 1, 2, ... */
93 char *if_name; /* null terminated name: "le0", ... */ 93 char *if_name; /* NUL-terminated name: "le0", ... */
94}; 94};
95.Ed 95.Ed
96.Pp 96.Pp