aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-14 22:55:39 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-14 22:55:39 +0000
commit0f452b043d8016c2b1431bd8a2c6bbffd6416903 (patch)
tree790c7b63197a0ad8011a47b2decdefbe3fc62c96
parent3410742b83689f643c5960e1fca31f98a06d22bc (diff)
downloadbusybox-w32-0f452b043d8016c2b1431bd8a2c6bbffd6416903.tar.gz
busybox-w32-0f452b043d8016c2b1431bd8a2c6bbffd6416903.tar.bz2
busybox-w32-0f452b043d8016c2b1431bd8a2c6bbffd6416903.zip
swapon: reinstate hole check but reduce it to warning
inode_hash: remove unused variable git-svn-id: svn://busybox.net/trunk/busybox@18114 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--libbb/inode_hash.c1
-rw-r--r--util-linux/swaponoff.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index 55a7564ce..0705102b8 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -53,7 +53,6 @@ char *is_in_ino_dev_hashtable(const struct stat *statbuf)
53void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) 53void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name)
54{ 54{
55 int i; 55 int i;
56 size_t s;
57 ino_dev_hashtable_bucket_t *bucket; 56 ino_dev_hashtable_bucket_t *bucket;
58 57
59 i = hash_inode(statbuf->st_ino); 58 i = hash_inode(statbuf->st_ino);
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 3a6afe29e..893003549 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -18,11 +18,11 @@ static int swap_enable_disable(char *device)
18 18
19 xstat(device, &st); 19 xstat(device, &st);
20 20
21#ifdef BLOAT 21#if ENABLE_DESKTOP
22 /* test for holes */ 22 /* test for holes */
23 if (S_ISREG(st.st_mode)) 23 if (S_ISREG(st.st_mode))
24 if (st.st_blocks * 512 < st.st_size) 24 if (st.st_blocks * 512 < st.st_size)
25 bb_error_msg_and_die("swap file has holes"); 25 bb_error_msg("warning: swap file has holes");
26#endif 26#endif
27 27
28 if (applet_name[5] == 'n') 28 if (applet_name[5] == 'n')