summaryrefslogtreecommitdiffstats
path: root/mount/fstab.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-01 13:33:04 +0200
committerKarel Zak2011-08-01 13:33:04 +0200
commitd759ac366ab4eaa6e036f61ee4c9de10eec2a785 (patch)
tree2647e51a4a0d0d56f50df104ccc4170a8dff81e4 /mount/fstab.c
parentionice: fix compiler warnings [-Wsign-compare] (diff)
downloadkernel-qcow2-util-linux-d759ac366ab4eaa6e036f61ee4c9de10eec2a785.tar.gz
kernel-qcow2-util-linux-d759ac366ab4eaa6e036f61ee4c9de10eec2a785.tar.xz
kernel-qcow2-util-linux-d759ac366ab4eaa6e036f61ee4c9de10eec2a785.zip
mount: fix compiler warnings [-Wsign-compare -Wunused-parameter]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/fstab.c')
-rw-r--r--mount/fstab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/fstab.c b/mount/fstab.c
index 4fa26b446..2331a7d82 100644
--- a/mount/fstab.c
+++ b/mount/fstab.c
@@ -580,7 +580,7 @@ handler (int sig) {
}
static void
-setlkw_timeout (int sig) {
+setlkw_timeout (int sig __attribute__ ((__unused__))) {
/* nothing, fcntl will fail anyway */
}
@@ -775,7 +775,7 @@ get_option(const char *optname, const char *src, size_t *len)
return NULL;
end = strchr(opt, ',');
- sz = end ? end - opt : strlen(opt);
+ sz = end && end > opt ? (size_t) (end - opt) : strlen(opt);
if (len)
*len = sz;