Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2015 14:46:43 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285891 - head/tests/sys/fifo
Message-ID:  <201507261446.t6QEkhTM083193@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigc
Date: Sun Jul 26 14:46:42 2015
New Revision: 285891
URL: https://svnweb.freebsd.org/changeset/base/285891

Log:
  Pass unsigned long argument to ioctl().
  
  Eliminates "ioctl sign-extension" warnings.
  
  PR:		200896

Modified:
  head/tests/sys/fifo/fifo_misc.c

Modified: head/tests/sys/fifo/fifo_misc.c
==============================================================================
--- head/tests/sys/fifo/fifo_misc.c	Sun Jul 26 11:21:36 2015	(r285890)
+++ head/tests/sys/fifo/fifo_misc.c	Sun Jul 26 14:46:42 2015	(r285891)
@@ -30,6 +30,7 @@
 #include <sys/types.h>
 #include <sys/event.h>
 #include <sys/filio.h>
+#include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 
@@ -149,7 +150,7 @@ test_truncate(void)
 }
 
 static int
-test_ioctl_setclearflag(int fd, int flag, const char *testname,
+test_ioctl_setclearflag(int fd, unsigned long flag, const char *testname,
     const char *fdname, const char *flagname)
 {
 	int i;



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