Author: ngie
Date: Thu Oct 23 07:59:59 2014
New Revision: 273534
URL: https://svnweb.freebsd.org/changeset/base/273534
Log:
- Mark sig/signo __unused
- Do not provide a relative path via #include "h_macros.h"
Sponsored by: EMC / Isilon Storage Division
Modified:
head/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c
Modified: head/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c Thu Oct 23
07:54:46 2014 (r273533)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c Thu Oct 23
07:59:59 2014 (r273534)
@@ -42,12 +42,20 @@ __RCSID("$NetBSD: t_sigaction.c,v 1.2 20
#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, co
}
static void
+#ifdef __FreeBSD__
+catch(int sig __unused)
+#else
catch(int sig)
+#endif
{
return;
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"