From owner-cvs-src@FreeBSD.ORG Fri Nov 14 00:09:02 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93C2116A4CE; Fri, 14 Nov 2003 00:09:02 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B4D443FE5; Fri, 14 Nov 2003 00:09:02 -0800 (PST) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAE891XJ004419; Fri, 14 Nov 2003 00:09:01 -0800 (PST) (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAE89104004418; Fri, 14 Nov 2003 00:09:01 -0800 (PST) (envelope-from harti) Message-Id: <200311140809.hAE89104004418@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 14 Nov 2003 00:09:01 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libnetgraph internal.h msg.c netgraph.3 sock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 08:09:02 -0000 harti 2003/11/14 00:09:01 PST FreeBSD src repository Modified files: lib/libnetgraph internal.h msg.c netgraph.3 sock.c Log: 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. Revision Changes Path 1.4 +6 -1 src/lib/libnetgraph/internal.h 1.7 +7 -6 src/lib/libnetgraph/msg.c 1.19 +2 -2 src/lib/libnetgraph/netgraph.3 1.5 +13 -13 src/lib/libnetgraph/sock.c