util-linux/mkswap.c: fix warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4ebc76c8a2
commit
f5a295d5a8
@ -112,7 +112,7 @@ int mkswap_main(int argc, char **argv)
|
||||
// Make a header. hdr is zero-filled so far...
|
||||
hdr[0] = 1;
|
||||
hdr[1] = (len / pagesize) - 1;
|
||||
#if ENABLE_FEATURE_MKSWAP_UUID
|
||||
if (ENABLE_FEATURE_MKSWAP_UUID) {
|
||||
char uuid_string[32];
|
||||
generate_uuid((void*) &hdr[3]);
|
||||
bin2hex(uuid_string, (void*) &hdr[3], 16);
|
||||
@ -124,7 +124,7 @@ int mkswap_main(int argc, char **argv)
|
||||
uuid_string+8+4+4,
|
||||
uuid_string+8+4+4+4
|
||||
);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Write the header. Sync to disk because some kernel versions check
|
||||
// signature on disk (not in cache) during swapon.
|
||||
|
Loading…
Reference in New Issue
Block a user