summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2017-10-13 19:00:36 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2017-10-13 19:00:36 +0000
commit3d580ab7e2a750d9a6a768649468ecf6e6fc8b8f (patch)
treea0c4b2f43db45248505f497b3c5e64cb833a0d71
parent74ca2661618991ef5b379ed05adeb97321ce4b0c (diff)
ansify function prototypes (to match db_stack_trace_print() in the same file)
-rw-r--r--sys/arch/alpha/alpha/db_trace.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/sys/arch/alpha/alpha/db_trace.c b/sys/arch/alpha/alpha/db_trace.c
index f653b64ae9a..41604bb3733 100644
--- a/sys/arch/alpha/alpha/db_trace.c
+++ b/sys/arch/alpha/alpha/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.20 2017/09/08 05:36:51 deraadt Exp $ */
+/* $OpenBSD: db_trace.c,v 1.21 2017/10/13 19:00:35 jasper Exp $ */
/*
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -117,36 +117,31 @@ static __inline int regc(u_int);
static __inline int disp(u_int);
static __inline int
-sext(x)
- u_int x;
+sext(u_int x)
{
return ((x & 0x8000) ? -(-x & 0xffff) : (x & 0xffff));
}
static __inline int
-rega(x)
- u_int x;
+rega(u_int x)
{
return ((x >> 21) & 0x1f);
}
static __inline int
-regb(x)
- u_int x;
+regb(u_int x)
{
return ((x >> 16) & 0x1f);
}
static __inline int
-regc(x)
- u_int x;
+regc(u_int x)
{
return (x & 0x1f);
}
static __inline int
-disp(x)
- u_int x;
+disp(u_int x)
{
return (sext(x & 0xffff));
}