Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/kernel/kqueue bump warns.



details:   https://anonhg.NetBSD.org/src/rev/1ad371f35199
branches:  trunk
changeset: 805710:1ad371f35199
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 14 22:22:32 2015 +0000

description:
bump warns.

diffstat:

 tests/kernel/kqueue/Makefile  |  4 +++-
 tests/kernel/kqueue/t_ioctl.c |  7 ++++---
 tests/kernel/kqueue/t_proc1.c |  9 +++++----
 tests/kernel/kqueue/t_proc2.c |  7 ++++---
 tests/kernel/kqueue/t_proc3.c |  6 +++---
 5 files changed, 19 insertions(+), 14 deletions(-)

diffs (138 lines):

diff -r 0cf2728e7a2f -r 1ad371f35199 tests/kernel/kqueue/Makefile
--- a/tests/kernel/kqueue/Makefile      Wed Jan 14 22:22:14 2015 +0000
+++ b/tests/kernel/kqueue/Makefile      Wed Jan 14 22:22:32 2015 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2012/11/17 21:55:24 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2015/01/14 22:22:32 christos Exp $
 
+WARNS?=6
 NOMAN=         # defined
 
 .include <bsd.own.mk>
@@ -14,5 +15,6 @@
 TESTS_C+=      t_proc2
 TESTS_C+=      t_proc3
 TESTS_C+=      t_sig
+TESTS_C+=      t_vnode
 
 .include <bsd.test.mk>
diff -r 0cf2728e7a2f -r 1ad371f35199 tests/kernel/kqueue/t_ioctl.c
--- a/tests/kernel/kqueue/t_ioctl.c     Wed Jan 14 22:22:14 2015 +0000
+++ b/tests/kernel/kqueue/t_ioctl.c     Wed Jan 14 22:22:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ioctl.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
+/* $NetBSD: t_ioctl.c,v 1.2 2015/01/14 22:22:32 christos Exp $ */
 
 /*-
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_ioctl.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
+__RCSID("$NetBSD: t_ioctl.c,v 1.2 2015/01/14 22:22:32 christos Exp $");
 
 #include <sys/event.h>
 #include <sys/ioctl.h>
@@ -53,7 +53,8 @@
 {
        char buf[32];
        struct kfilter_mapping km;
-       int i, kq;
+       int kq;
+       uint32_t i;
 
        RL(kq = kqueue());
 
diff -r 0cf2728e7a2f -r 1ad371f35199 tests/kernel/kqueue/t_proc1.c
--- a/tests/kernel/kqueue/t_proc1.c     Wed Jan 14 22:22:14 2015 +0000
+++ b/tests/kernel/kqueue/t_proc1.c     Wed Jan 14 22:22:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_proc1.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
+/* $NetBSD: t_proc1.c,v 1.2 2015/01/14 22:22:32 christos Exp $ */
 
 /*-
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_proc1.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
+__RCSID("$NetBSD: t_proc1.c,v 1.2 2015/01/14 22:22:32 christos Exp $");
 
 /*
  * this also used to trigger problem fixed in
@@ -99,7 +99,8 @@
 {
        struct kevent event[1];
        pid_t pid;
-       int kq, want, status;
+       int kq, status;
+       u_int want;
 
        RL(kq = kqueue());
 
@@ -112,7 +113,7 @@
 
        (void)sleep(1); /* give child some time to come up */
 
-       event[0].ident = pid;
+       event[0].ident = (uintptr_t)pid;
        event[0].filter = EVFILT_PROC;
        event[0].flags = EV_ADD | EV_ENABLE;
        event[0].fflags = NOTE_EXIT | NOTE_FORK | NOTE_EXEC; /* | NOTE_TRACK;*/
diff -r 0cf2728e7a2f -r 1ad371f35199 tests/kernel/kqueue/t_proc2.c
--- a/tests/kernel/kqueue/t_proc2.c     Wed Jan 14 22:22:14 2015 +0000
+++ b/tests/kernel/kqueue/t_proc2.c     Wed Jan 14 22:22:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_proc2.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */
+/* $NetBSD: t_proc2.c,v 1.2 2015/01/14 22:22:32 christos Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_proc2.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $");
+__RCSID("$NetBSD: t_proc2.c,v 1.2 2015/01/14 22:22:32 christos Exp $");
 
 #include <sys/event.h>
 #include <sys/time.h>
@@ -106,7 +106,8 @@
                /* NOTREACHED */
        }
 
-       EV_SET(&ke, pid, EVFILT_PROC, EV_ADD, NOTE_FORK|NOTE_TRACK, 0, 0);
+       EV_SET(&ke, (uintptr_t)pid, EVFILT_PROC, EV_ADD, NOTE_FORK|NOTE_TRACK,
+           0, 0);
 
        RL(kevent(kq, &ke, 1, NULL, 0, &timeout));
 
diff -r 0cf2728e7a2f -r 1ad371f35199 tests/kernel/kqueue/t_proc3.c
--- a/tests/kernel/kqueue/t_proc3.c     Wed Jan 14 22:22:14 2015 +0000
+++ b/tests/kernel/kqueue/t_proc3.c     Wed Jan 14 22:22:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_proc3.c,v 1.1 2012/11/17 21:55:24 joerg Exp $ */
+/* $NetBSD: t_proc3.c,v 1.2 2015/01/14 22:22:32 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_proc3.c,v 1.1 2012/11/17 21:55:24 joerg Exp $");
+__RCSID("$NetBSD: t_proc3.c,v 1.2 2015/01/14 22:22:32 christos Exp $");
 
 #include <sys/event.h>
 #include <sys/time.h>
@@ -63,7 +63,7 @@
 
        RL(kq = kqueue());
 
-       EV_SET(&ke, getpid(), EVFILT_PROC, EV_ADD, NOTE_TRACK, 0, 0);
+       EV_SET(&ke, (uintptr_t)getpid(), EVFILT_PROC, EV_ADD, NOTE_TRACK, 0, 0);
 
        RL(kevent(kq, &ke, 1, NULL, 0, NULL));
 



Home | Main Index | Thread Index | Old Index