diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-08-19 17:20:03 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-08-19 17:20:03 +0000 |
commit | a5175f2536c00b6924900888c306398d898a8cc9 (patch) | |
tree | af773d9e6cc9c48ad2f09322c0b2b518c09b80e6 /sys/net/if.c | |
parent | 209b6366d94efdb86b170460f26cb0c11d259a37 (diff) | |
download | FreeBSD-src-a5175f2536c00b6924900888c306398d898a8cc9.zip FreeBSD-src-a5175f2536c00b6924900888c306398d898a8cc9.tar.gz |
Clean up a comment talking about C strings, which are terminated with the
ASCII NUL character (0, or '\0' in C).
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index a551148..25b8dc8 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1214,10 +1214,10 @@ if_withname(sa) return NULL; /* - * ifunit wants a null-terminated name. It may not be null-terminated - * in the sockaddr. We don't want to change the caller's sockaddr, - * and there might not be room to put the trailing null anyway, so we - * make a local copy that we know we can null terminate safely. + * ifunit wants a NUL-terminated string. It may not be NUL-terminated + * in the sockaddr, and we don't want to change the caller's sockaddr + * (there might not be room to add the trailing NUL anyway), so we make + * a local copy that we know we can NUL-terminate safely. */ bcopy(sdl->sdl_data, ifname, sdl->sdl_nlen); |