mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
- 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:
parent
922231762c
commit
3524bdaf9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273534
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user