From 24f83f7392a1e90e7db8567a675fdcd8f2e3e623 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 26 Apr 2014 00:50:30 +0100 Subject: swapon, swapheader, mkswap: move swap signature to header Both swapon and mkswap need to know what is valid device signature, so share the value. [kzak@redhat.com: - use SWAP_SIGNATURE_SZ properly in write_signature()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- sys-utils/swapon.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys-utils/swapon.c') diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index b88b7ec63..4f98500ef 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -76,9 +76,6 @@ enum { SIG_SWSUSPEND }; -#define SWAP_SIGNATURE "SWAPSPACE2" -#define SWAP_SIGNATURE_SZ (sizeof(SWAP_SIGNATURE) - 1) - static int all; static int priority = -1; /* non-prioritized swap by default */ static int discard; /* don't send swap discards by default */ -- cgit v1.2.3-55-g7522