diff options
author | cloder <> | 2005-02-25 03:12:44 +0000 |
---|---|---|
committer | cloder <> | 2005-02-25 03:12:44 +0000 |
commit | 67e61f91527f9a7cd6b9a16b0cd90dd56607d505 (patch) | |
tree | d9de936ffc7fa9289c7b7f61b1db414900ba94fa /src/lib/libc/net/if_indextoname.3 | |
parent | 52fef3b7d084fa9e2d0ac9187917b0ede8d9d58d (diff) | |
download | openbsd-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.3 | 6 |
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 |
73 | is also defined in | 73 | is also defined in |
74 | .Aq Pa net/if.h | 74 | .Aq Pa net/if.h |
75 | and its value includes a terminating null byte at the end of the | 75 | and its value includes a terminating NUL byte at the end of the |
76 | interface name.) | 76 | interface name.) |
77 | This pointer is also the return value of the function. | 77 | This pointer is also the return value of the function. |
78 | If there is no interface corresponding to the specified index, | 78 | If 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 |
91 | struct if_nameindex { | 91 | struct 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 |