summaryrefslogtreecommitdiffstats
path: root/fish/fish.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-21 14:55:39 +0200
committerJim Meyering <meyering@redhat.com>2009-08-21 15:24:25 +0200
commit7b2d9feb821376603bcbc0707e21edce36109f9a (patch)
tree88d9567cacdbf83fa07fbfabe6f3521c5df5492c /fish/fish.h
parent05fd2a60466cb7c270b60e9b93c46548acf319cd (diff)
downloadlibguestfs-7b2d9feb821376603bcbc0707e21edce36109f9a.tar.gz
libguestfs-7b2d9feb821376603bcbc0707e21edce36109f9a.tar.xz
libguestfs-7b2d9feb821376603bcbc0707e21edce36109f9a.zip
fish.c: avoid "assignment discards qualifiers..." warning
* fish/fish.c (main): Cast-away-const. * fish/fish.h (bad_cast): Define. Safer than using an actual cast.
Diffstat (limited to 'fish/fish.h')
-rw-r--r--fish/fish.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index b7ed922d..642c269a 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -106,4 +106,10 @@ extern char *try_tilde_expansion (char *path);
"reopen", \
"time"
+static inline char *
+bad_cast (char const *s)
+{
+ return (char *) s;
+}
+
#endif /* FISH_H */