Fix warning about ignoring return value of realloc
commite2d5bba35e151d910a172cf681de4181509553a5
authorPetr Tesarik <petr@tesarici.cz>
Mon, 26 Sep 2011 18:00:37 +0000 (26 20:00 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Mon, 26 Sep 2011 18:00:37 +0000 (26 20:00 +0200)
tree6e74bc2b1fffbbe31df8c895003ff06183a1e241
parente4f27138c8a2652d10622f2b81c309d526e70b57
Fix warning about ignoring return value of realloc

Even though the non-trivial implementation of swp_shrink guarantees that
the pointer does not change, this is not the case when CONFIG_SWAP is
not defined.

Let's follow the realloc() calling convention...
src/file/cache.c
src/file/swap.c
src/file/swap.h