Fix warnings from old style C code.

This commit is contained in:
Ali Mashtizadeh 2023-08-22 18:02:12 -04:00
parent 1df34b2d2e
commit 5295c3c8d2

View File

@ -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;