From 5295c3c8d2cbd38e542b015e289e0f4df8470f1b Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Tue, 22 Aug 2023 18:02:12 -0400 Subject: [PATCH] Fix warnings from old style C code. --- sys/amd64/disasm.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/sys/amd64/disasm.c b/sys/amd64/disasm.c index c51c8e9..6aacbf7 100644 --- a/sys/amd64/disasm.c +++ b/sys/amd64/disasm.c @@ -1001,12 +1001,7 @@ static uintptr_t * Read address at location and return updated location. */ static uintptr_t -db_read_address(loc, short_addr, rex, regmodrm, addrp) - uintptr_t loc; - int short_addr; - int rex; - int regmodrm; - struct i_addr * addrp; /* out */ +db_read_address(uintptr_t loc, int short_addr, int rex, int regmodrm, struct i_addr *addrp) { int mod, rm, sib, index, disp, size, have_sib; @@ -1069,11 +1064,7 @@ db_read_address(loc, short_addr, rex, regmodrm, addrp) } static void -db_print_address(seg, size, rex, addrp) - const char * seg; - int size; - int rex; - struct i_addr * addrp; +db_print_address(const char *seg, int size, int rex, struct i_addr *addrp) { if (addrp->is_reg) { kprintf("%s", db_reg[rex != 0 ? 1 : 0][(size == LONG && (rex & REX_W)) ? QUAD : size][addrp->disp]); @@ -1101,13 +1092,7 @@ db_print_address(seg, size, rex, addrp) * and return updated location. */ static uintptr_t -db_disasm_esc(loc, inst, rex, short_addr, size, seg) - uintptr_t loc; - int inst; - int rex; - int short_addr; - int size; - const char * seg; +db_disasm_esc(uintptr_t loc, int inst, int rex, int short_addr, int size, const char *seg) { int regmodrm; const struct finst * fp;