summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-06-09 05:39:02 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-06-09 05:39:02 +0000
commit160d36ddbe74dc6352a9a49bcf1b2e7d78f908dc (patch)
tree2ed7a4991e0bd7bcd83203ac95ee861738db32d0 /sys
parent6b8cb882773d799279bf8967947d4a237893e0b2 (diff)
KNF
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/ddb/db_disasm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/powerpc/ddb/db_disasm.c b/sys/arch/powerpc/ddb/db_disasm.c
index 8d1796fda3c..32561c2d909 100644
--- a/sys/arch/powerpc/ddb/db_disasm.c
+++ b/sys/arch/powerpc/ddb/db_disasm.c
@@ -1,5 +1,5 @@
/* $NetBSD: db_disasm.c,v 1.8 2001/06/12 05:31:44 simonb Exp $ */
-/* $OpenBSD: db_disasm.c,v 1.1 2002/06/08 16:02:14 miod Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.2 2002/06/09 05:39:01 drahn Exp $ */
/*
* Copyright (c) 1996 Dale Rahn. All rights reserved.
*
@@ -985,7 +985,7 @@ disasm_fields(u_int32_t addr, const struct opcode *popcode, instr_t instr, char
char *pfmt;
char *poutput;
disasm_str[0] = '\0';
- if(popcode->decode_str == NULL || popcode->decode_str[0] == '0') {
+ if (popcode->decode_str == NULL || popcode->decode_str[0] == '0') {
return;
}
pfmt = popcode->decode_str;
@@ -1059,10 +1059,9 @@ dis_ppc(u_int32_t addr, const struct opcode *opcodeset, instr_t instr)
int i;
char disasm_str[30];
- for ( i=0, op = &opcodeset[0];
- found == 0 && op->mask != 0;
- i++, op= &opcodeset[i] )
- {
+ for (i=0, op = &opcodeset[0];
+ found == 0 && op->mask != 0;
+ i++, op= &opcodeset[i] ) {
if ((instr & op->mask) == op->code) {
found = 1;
disasm_fields(addr, op, instr, disasm_str);