From owner-cvs-all Sat Jul 14 10:46:55 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 89B9237B403; Sat, 14 Jul 2001 10:46:52 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6EHkqT30326; Sat, 14 Jul 2001 10:46:52 -0700 (PDT) (envelope-from iedowse) Message-Id: <200107141746.f6EHkqT30326@freefall.freebsd.org> From: Ian Dowse Date: Sat, 14 Jul 2001 10:46:52 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rpcbind rpcb_stat.c rpcb_svc_com.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2001/07/14 10:46:52 PDT Modified files: usr.sbin/rpcbind rpcb_stat.c rpcb_svc_com.c Log: This is a selection of essentially cosmetic changes: - Use '\0' for a char instead of NULL. - Explicitly compare against the global `nullstring' to determine if a non-NULL uaddr is not malloc'd. - Remove some unnecessary casting of the argument to free(). - In rpcbproc_callit_com(), move the freeing of m_uaddr to the cleanup code at the end of the function. - To avoid confusion and possible alignment problems, change netbufdup() to allocate the netbuf struct and the sockaddr buffer separately, and change netbuffree() accordingly. This makes it produce netbufs that are consistent with all other netbufs in rpcbind. Revision Changes Path 1.2 +2 -2 src/usr.sbin/rpcbind/rpcb_stat.c 1.4 +42 -38 src/usr.sbin/rpcbind/rpcb_svc_com.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message