diff options
| author | christos <christos@NetBSD.org> | 2015-01-14 22:22:32 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2015-01-14 22:22:32 +0000 |
| commit | a9b460f754ceaecb9edd25a56836dcb4a171e07c (patch) | |
| tree | 6e966ff6ba6254947851b82adabee0f7202cd65e /tests/kernel/kqueue/t_proc1.c | |
| parent | eaaaaf87513b4cbba9ad742f7334b99afa1376e7 (diff) | |
bump warns.
Diffstat (limited to 'tests/kernel/kqueue/t_proc1.c')
| -rw-r--r-- | tests/kernel/kqueue/t_proc1.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/kernel/kqueue/t_proc1.c b/tests/kernel/kqueue/t_proc1.c index e7553095faf..07d5a3c0279 100644 --- a/tests/kernel/kqueue/t_proc1.c +++ b/tests/kernel/kqueue/t_proc1.c @@ -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 @@ ATF_TC_BODY(proc1, tc) { struct kevent event[1]; pid_t pid; - int kq, want, status; + int kq, status; + u_int want; RL(kq = kqueue()); @@ -112,7 +113,7 @@ ATF_TC_BODY(proc1, tc) (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;*/ |
