summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-12 17:12:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-12 17:12:28 +0000
commita68cb75a2e72303ef4a609cab28d25ccc789d685 (patch)
treec9f1fd8ef0c1d50341c4377ce467c94ec6944881 /util-linux
parent0b18cd3d04b17acec73af3d2cafd00c59a3f807f (diff)
downloadbusybox-w32-a68cb75a2e72303ef4a609cab28d25ccc789d685.tar.gz
busybox-w32-a68cb75a2e72303ef4a609cab28d25ccc789d685.tar.bz2
busybox-w32-a68cb75a2e72303ef4a609cab28d25ccc789d685.zip
Applied post 1.9.0 fixes
Diffstat (limited to '')
-rw-r--r--util-linux/mkswap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 8e1fbc384..f14f6df50 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -64,9 +64,10 @@ int mkswap_main(int argc, char **argv)
64 // Figure out how big the device is and announce our intentions. 64 // Figure out how big the device is and announce our intentions.
65 65
66 fd = xopen(argv[1], O_RDWR); 66 fd = xopen(argv[1], O_RDWR);
67 len = fdlength(fd); 67 len = lseek(fd, 0, SEEK_END);
68 lseek(fd, 0, SEEK_SET);
68 pagesize = getpagesize(); 69 pagesize = getpagesize();
69 printf("Setting up swapspace version 1, size = %"OFF_FMT"d bytes\n", 70 printf("Setting up swapspace version 1, size = %"OFF_FMT"u bytes\n",
70 len - pagesize); 71 len - pagesize);
71 mkswap_selinux_setcontext(fd, argv[1]); 72 mkswap_selinux_setcontext(fd, argv[1]);
72 73