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:
ngie 2015-04-11 07:35:30 +00:00
parent afc8d7d9c8
commit c1dc6f79c4
2 changed files with 3 additions and 6 deletions

View File

@ -4,6 +4,5 @@
PROG= reconnect
MAN=
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -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