]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the new defines that include the trailing '\0' in the code.
authorHartmut Brandt <harti@FreeBSD.org>
Fri, 14 Nov 2003 08:09:01 +0000 (08:09 +0000)
committerHartmut Brandt <harti@FreeBSD.org>
Fri, 14 Nov 2003 08:09:01 +0000 (08:09 +0000)
commit54e33116437439f86e3276c90d07c0bd5724dfef
tree4d988635293cd2327c4c416a4d2f0a7470cb6301
parentcc512faeb8ab86325d899d6a988835252a4c5805
Use the new defines that include the trailing '\0' in the code.
Replace occurences of the magic constant 2 with an offsetof macro
call that computes the size of the leading members of the sockaddr.
Use strlcpy instead of sprintf where appropriate. Document the new changes
in the man page.
lib/libnetgraph/internal.h
lib/libnetgraph/msg.c
lib/libnetgraph/netgraph.3
lib/libnetgraph/sock.c