diff options
| author | christos <christos@NetBSD.org> | 2010-11-03 16:10:19 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2010-11-03 16:10:19 +0000 |
| commit | 0f10aa9dce10d06b907b06520ae9c3443b22e983 (patch) | |
| tree | fd64736b5e29c16660d05efd70f449f3aabf0e2e /tests/kernel/kqueue | |
| parent | d3d3da9ee38a743ed2502dceebedc4ff92e480a8 (diff) | |
add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
Diffstat (limited to 'tests/kernel/kqueue')
| -rw-r--r-- | tests/kernel/kqueue/Makefile.inc | 1 | ||||
| -rw-r--r-- | tests/kernel/kqueue/t_sig.c | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/kernel/kqueue/Makefile.inc b/tests/kernel/kqueue/Makefile.inc new file mode 100644 index 00000000000..01b5f23410c --- /dev/null +++ b/tests/kernel/kqueue/Makefile.inc @@ -0,0 +1 @@ +.include "../Makefile.inc" diff --git a/tests/kernel/kqueue/t_sig.c b/tests/kernel/kqueue/t_sig.c index ef29d9f3d7a..4fc075847c8 100644 --- a/tests/kernel/kqueue/t_sig.c +++ b/tests/kernel/kqueue/t_sig.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_sig.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $ */ +/* $NetBSD: t_sig.c,v 1.2 2010/11/03 16:10:20 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_sig.c,v 1.1 2009/02/20 21:39:57 jmmv Exp $"); +__RCSID("$NetBSD: t_sig.c,v 1.2 2010/11/03 16:10:20 christos Exp $"); #include <sys/event.h> #include <sys/ioctl.h> @@ -111,8 +111,8 @@ ATF_TC_BODY(sig, tc) RL(gettimeofday(&now, NULL)); timersub(&now, &then, &diff); - (void)printf("sig: kevent returned %d in %ld.%06ld\n", - n, diff.tv_sec, diff.tv_usec); + (void)printf("sig: kevent returned %d in %lld.%06ld\n", + n, (long long)diff.tv_sec, (long)diff.tv_usec); if (n == 0) continue; |
