Date: Sat, 14 Jul 2001 10:46:52 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rpcbind rpcb_stat.c rpcb_svc_com.c Message-ID: <200107141746.f6EHkqT30326@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107141746.f6EHkqT30326>