summaryrefslogtreecommitdiffstats
path: root/mount
diff options
context:
space:
mode:
authorKarel Zak2009-03-03 16:25:23 +0100
committerKarel Zak2009-03-03 16:25:23 +0100
commit7926576ec2f3d25aecbc128b851326b6dbf85662 (patch)
treedf2138d4ee544697df722b1ec28822102c7586d8 /mount
parentlib: gcc warning in fix fsprobe (diff)
downloadkernel-qcow2-util-linux-7926576ec2f3d25aecbc128b851326b6dbf85662.tar.gz
kernel-qcow2-util-linux-7926576ec2f3d25aecbc128b851326b6dbf85662.tar.xz
kernel-qcow2-util-linux-7926576ec2f3d25aecbc128b851326b6dbf85662.zip
lib: fix fsprobe wrapper (const char * is nonsense)
The fsprobe_ functions return newly allocated strings. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r--mount/fstab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/fstab.c b/mount/fstab.c
index c238fa2db..13dda8714 100644
--- a/mount/fstab.c
+++ b/mount/fstab.c
@@ -916,8 +916,8 @@ update_mtab (const char *dir, struct my_mntent *instead) {
* number and writes the number back to the file.
*/
/* dummy */
-const char *fsprobe_get_label_by_devname(const char *spec) { return NULL; }
-const char *fsprobe_get_uuid_by_devname(const char *spec) { return NULL; }
+char *fsprobe_get_label_by_devname(const char *spec) { return NULL; }
+char *fsprobe_get_uuid_by_devname(const char *spec) { return NULL; }
int fsprobe_parse_spec(const char *spec, char **name, char **value) { return 0; }
struct my_mntent *my_getmntent (mntFILE *mfp) { return NULL; }
mntFILE *my_setmntent (const char *file, char *mode) { return NULL; }