diff options
author | 2017-10-13 19:00:35 +0000 | |
---|---|---|
committer | 2017-10-13 19:00:35 +0000 | |
commit | 40395a157837ccec5e33d6ca1b4d2aaebfd67102 (patch) | |
tree | a6283d31ee985255366884fd6595fadf6029883f | |
parent | return a missing return (was left out of previous) (diff) | |
download | wireguard-openbsd-40395a157837ccec5e33d6ca1b4d2aaebfd67102.tar.xz wireguard-openbsd-40395a157837ccec5e33d6ca1b4d2aaebfd67102.zip |
ansify function prototypes (to match db_stack_trace_print() in the same file)
-rw-r--r-- | sys/arch/alpha/alpha/db_trace.c | 17 |
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)); } |