Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/arch/m68k/emuspeed WARNSfy
details: https://anonhg.NetBSD.org/src/rev/a060982694e6
branches: trunk
changeset: 765078:a060982694e6
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed May 18 18:41:59 2011 +0000
description:
WARNSfy
diffstat:
regress/sys/arch/m68k/emuspeed/emuspeed.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 0122b525401d -r a060982694e6 regress/sys/arch/m68k/emuspeed/emuspeed.c
--- a/regress/sys/arch/m68k/emuspeed/emuspeed.c Wed May 18 18:36:15 2011 +0000
+++ b/regress/sys/arch/m68k/emuspeed/emuspeed.c Wed May 18 18:41:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emuspeed.c,v 1.7 2008/04/28 20:23:06 martin Exp $ */
+/* $NetBSD: emuspeed.c,v 1.8 2011/05/18 18:41:59 tsutsui Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -26,6 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <err.h>
#include <setjmp.h>
#include <signal.h>
#include <stdlib.h>
@@ -38,9 +39,9 @@
#define PRECISION 500
const struct test {
- char *name;
+ const char *name;
void (*func)(int);
- char *comment;
+ const char *comment;
} testlist[] = {
{"Illegal", illegal, "(test: unimplemented)"},
{"mulsl Da,Db", mul32sreg, "(test: should be native)"},
@@ -61,6 +62,7 @@
jmp_buf jbuf;
void illhand (int);
+int main(int, char *[]);
int
main(argc, argv)
@@ -94,7 +96,7 @@
t->func(count);
stop = clock();
} while ((stop - start) < PRECISION);
- printf("%10d/s %s\n",
+ printf("%10lu/s %s\n",
CLOCKS_PER_SEC*(count /(stop - start)),
t->comment);
}
Home |
Main Index |
Thread Index |
Old Index