Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2014 08:00:00 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273534 - head/contrib/netbsd-tests/lib/libc/sys
Message-ID:  <201410230800.s9N8006Q082880@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410230800.s9N8006Q082880>