Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- sys-utils/swapon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 6c422ce..c2d4795 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -344,8 +344,7 @@ err: static int swap_detect_signature(const char *buf, int *sig) { - if (memcmp(buf, "SWAP-SPACE", 10) == 0 || - memcmp(buf, "SWAPSPACE2", 10) == 0) + if (memcmp(buf, SWAP_SIGNATURE, 10) == 0) *sig = SIG_SWAPSPACE; else if (memcmp(buf, "S1SUSPEND", 9) == 0 || -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html