diff options
author | Karel Zak | 2009-01-31 01:50:26 +0100 |
---|---|---|
committer | Karel Zak | 2009-01-31 01:50:26 +0100 |
commit | 19ac06a5c09e2a6ecc1c8d8ab85b2eaca0d6a61f (patch) | |
tree | 0102c477cb5fc4c6b293f52b7570a3cd1c53505f | |
parent | rtcwake: add mising .RE to the man page (diff) | |
download | kernel-qcow2-util-linux-19ac06a5c09e2a6ecc1c8d8ab85b2eaca0d6a61f.tar.gz kernel-qcow2-util-linux-19ac06a5c09e2a6ecc1c8d8ab85b2eaca0d6a61f.tar.xz kernel-qcow2-util-linux-19ac06a5c09e2a6ecc1c8d8ab85b2eaca0d6a61f.zip |
mount: fix typo in volume_id code
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | mount/fsprobe_volumeid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/fsprobe_volumeid.c b/mount/fsprobe_volumeid.c index 949db8298..b9b137b8a 100644 --- a/mount/fsprobe_volumeid.c +++ b/mount/fsprobe_volumeid.c @@ -124,7 +124,7 @@ fsprobe_get_devname_by_uuid(const char *uuid) strcpy(dev, _PATH_DEV_BYUUID "/"); len = strlen(_PATH_DEV_BYUUID "/"); - if (!volume_id_encode_string(uuid, &dev[len], sizeof(dev) - len) != 0) + if (!volume_id_encode_string(uuid, &dev[len], sizeof(dev) - len)) return NULL; return canonicalize(dev); } @@ -139,7 +139,7 @@ fsprobe_get_devname_by_label(const char *label) return NULL; strcpy(dev, _PATH_DEV_BYLABEL "/"); len = strlen(_PATH_DEV_BYLABEL "/"); - if (!volume_id_encode_string(label, &dev[len], sizeof(dev) - len) != 0) + if (!volume_id_encode_string(label, &dev[len], sizeof(dev) - len)) return NULL; return canonicalize(dev); } |