Fix a compiler warning by dropping the const qualifier. It is not
appropriate to qualify pointers to dynamically allocated memory as
const.

* sutils/fstab.c (real_name): Drop const qualifier.
---
 sutils/fstab.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sutils/fstab.c b/sutils/fstab.c
index e241de6..ca5c4a5 100644
--- a/sutils/fstab.c
+++ b/sutils/fstab.c
@@ -498,7 +498,7 @@ inline struct fs *
 fstab_find (const struct fstab *fstab, const char *name)
 {
   struct fs *ret;
-  const char *real_name;
+  char *real_name;
 
   ret = fstab_find_device (fstab, name);
   if (ret)
-- 
1.7.10.4


Reply via email to