From 55dd4073ca874747b69e942801c57437e48e72a9 Mon Sep 17 00:00:00 2001 From: Peter Schorn Date: Thu, 13 Apr 2023 12:14:36 +0200 Subject: [PATCH] ND100: Added void in function declarations, removed unused function ffs --- ND100/nd100_cpu.c | 17 ++--------------- ND100/nd100_mm.c | 4 ++-- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/ND100/nd100_cpu.c b/ND100/nd100_cpu.c index 83b81eac4..9e9030e4d 100644 --- a/ND100/nd100_cpu.c +++ b/ND100/nd100_cpu.c @@ -168,7 +168,7 @@ DEVICE cpu_dev = { }; t_stat -sim_instr() +sim_instr(void) { int IR; int reason; @@ -1525,7 +1525,7 @@ nd_tra(int reg) } int -highest_level() +highest_level(void) { int i, d = pid & pie; @@ -1551,19 +1551,6 @@ fls(int msk) return -1; } -int -ffs(mask) - register int mask; -{ - register int bit; - - if (mask == 0) - return(0); - for (bit = 1; !(mask & 1); bit++) - mask >>= 1; - return(bit); -} - /* * Post an internal interrupt for the given source. */ diff --git a/ND100/nd100_mm.c b/ND100/nd100_mm.c index 93b74fa2b..7c8315b27 100644 --- a/ND100/nd100_mm.c +++ b/ND100/nd100_mm.c @@ -172,7 +172,7 @@ wrmem(int vaddr, int val/* , int how*/) } void -mm_wrpcr() +mm_wrpcr(void) { if (ISDIS()) return; @@ -180,7 +180,7 @@ mm_wrpcr() } void -mm_rdpcr() +mm_rdpcr(void) { if (ISDIS()) return;