From: Alan Cox Date: Mon, 22 Jan 2018 00:08:03 +0000 (+0000) Subject: swap: fix build with fussy compilers X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b3e9a85261160005fd6796d228d09ee081323c98;p=FUZIX.git swap: fix build with fussy compilers --- diff --git a/Kernel/swap.c b/Kernel/swap.c index 41f91280..c2c269c9 100644 --- a/Kernel/swap.c +++ b/Kernel/swap.c @@ -22,7 +22,7 @@ uint16_t swappage; /* Target page */ static uint8_t swapmap[MAX_SWAPS]; static uint8_t swapptr = 0; -static const char maxswap[] = PANIC_MAXSWAP; +static char maxswap[] = PANIC_MAXSWAP; void swapmap_add(uint8_t swap) { @@ -174,7 +174,7 @@ void swapper(ptptr p) uint16_t map = p->p_page2; pagemap_alloc(p); /* May cause a swapout. May also destroy the old value of p->page2 */ - return swapper2(p, map); + swapper2(p, map); } #endif