bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/4] sutils: fix a compiler warning


From: Justus Winter
Subject: [PATCH 2/4] sutils: fix a compiler warning
Date: Mon, 1 Jul 2013 15:46:52 +0200

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

[Prev in Thread] Current Thread [Next in Thread]