Module Name:    src
Committed By:   christos
Date:           Fri Jan 13 19:27:23 UTC 2017

Modified Files:
        src/tests/lib/libc/sys: t_write.c

Log Message:
PR/51840: Ngie Cooper: portability fixes for FreeBSD, etc


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_write.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_write.c
diff -u src/tests/lib/libc/sys/t_write.c:1.2 src/tests/lib/libc/sys/t_write.c:1.3
--- src/tests/lib/libc/sys/t_write.c:1.2	Wed Oct 19 12:19:30 2011
+++ src/tests/lib/libc/sys/t_write.c	Fri Jan 13 14:27:23 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $ */
+/* $NetBSD: t_write.c,v 1.3 2017/01/13 19:27:23 christos Exp $ */
 
 /*-
  * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
@@ -29,15 +29,15 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $");
+__RCSID("$NetBSD: t_write.c,v 1.3 2017/01/13 19:27:23 christos Exp $");
 
 #include <sys/uio.h>
-#include <sys/syslimits.h>
 
 #include <atf-c.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
@@ -49,7 +49,7 @@ static bool		 fail = false;
 static const char	*path = "write";
 
 static void
-sighandler(int signo)
+sighandler(int signo __unused)
 {
 	fail = false;
 }

Reply via email to