public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c44a291
)
swap: fix build with fussy compilers
author
Alan Cox
<alan@linux.intel.com>
Mon, 22 Jan 2018 00:08:03 +0000
(
00:08
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 22 Jan 2018 00:08:03 +0000
(
00:08
+0000)
Kernel/swap.c
patch
|
blob
|
history
diff --git
a/Kernel/swap.c
b/Kernel/swap.c
index
41f9128
..
c2c269c
100644
(file)
--- 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 c
onst c
har 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