Fix more warnings I didn't catch in the first go-around
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
75171ec59a
commit
13517893dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281410
@ -4,6 +4,5 @@
|
||||
|
||||
PROG= reconnect
|
||||
MAN=
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -50,7 +50,7 @@ static char uds_name2[] = "reconnect.XXXXXXXX";
|
||||
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user