Date: Sat, 11 Apr 2015 07:35:30 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281410 - head/tools/regression/sockets/reconnect Message-ID: <201504110735.t3B7ZUph047862@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Apr 11 07:35:30 2015 New Revision: 281410 URL: https://svnweb.freebsd.org/changeset/base/281410 Log: Fix more warnings I didn't catch in the first go-around MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified: head/tools/regression/sockets/reconnect/Makefile head/tools/regression/sockets/reconnect/reconnect.c Modified: head/tools/regression/sockets/reconnect/Makefile ============================================================================== --- head/tools/regression/sockets/reconnect/Makefile Sat Apr 11 07:33:04 2015 (r281409) +++ head/tools/regression/sockets/reconnect/Makefile Sat Apr 11 07:35:30 2015 (r281410) @@ -4,6 +4,5 @@ PROG= reconnect MAN= -WARNS?= 2 .include <bsd.prog.mk> Modified: head/tools/regression/sockets/reconnect/reconnect.c ============================================================================== --- head/tools/regression/sockets/reconnect/reconnect.c Sat Apr 11 07:33:04 2015 (r281409) +++ head/tools/regression/sockets/reconnect/reconnect.c Sat Apr 11 07:35:30 2015 (r281410) @@ -50,7 +50,7 @@ static char uds_name2[] = "reconnect.XXX #define sstosa(ss) ((struct sockaddr *)(ss)) -void +static void prepare_ifsun(struct sockaddr_un *ifsun, const char *path) { @@ -99,10 +99,8 @@ void cleanup(void) { - if (uds_name1 != NULL) - unlink(uds_name1); - if (uds_name2 != NULL) - unlink(uds_name2); + unlink(uds_name1); + unlink(uds_name2); } int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504110735.t3B7ZUph047862>