- Mark sig/signo __unused

- Do not provide a relative path via #include "h_macros.h"

Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2014-10-23 07:59:59 +00:00
parent 922231762c
commit 3524bdaf9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273534

View File

@ -42,12 +42,20 @@ __RCSID("$NetBSD: t_sigaction.c,v 1.2 2012/11/07 16:51:16 pgoyette Exp $");
#include <atf-c.h>
#include <atf-c/config.h>
#ifdef __NetBSD__
#include "../../../h_macros.h"
#else
#include "h_macros.h"
#endif
static bool handler_called = false;
static void
#ifdef __FreeBSD__
handler(int signo __unused)
#else
handler(int signo)
#endif
{
handler_called = true;
}
@ -80,7 +88,11 @@ wait_and_check_child(const pid_t pid, const char *fail_message)
}
static void
#ifdef __FreeBSD__
catch(int sig __unused)
#else
catch(int sig)
#endif
{
return;
}