summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap2007-10-08 21:15:25 +0200
committerKarel Zak2007-10-11 00:30:42 +0200
commit7647936541a6215f600567469bf78fd123e87403 (patch)
tree726cca0252b0d18a02fc5505e3f353fab9dfda1f
parentmkfs.minix: clean up gcc warnings (diff)
downloadkernel-qcow2-util-linux-7647936541a6215f600567469bf78fd123e87403.tar.gz
kernel-qcow2-util-linux-7647936541a6215f600567469bf78fd123e87403.tar.xz
kernel-qcow2-util-linux-7647936541a6215f600567469bf78fd123e87403.zip
mount: clean up gcc warnings (mount_mntent.c)
Fix gcc warnings from: (try compilation with "-Wall -Wp,-D_FORTIFY_SOURCE=2") mount_mntent.c:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness mount_mntent.c:129: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:130: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:131: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness mount_mntent.c:132: warning: pointer targets in passing argument 1 of 'mangle' differ in signedness Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
-rw-r--r--mount/mount_mntent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/mount_mntent.c b/mount/mount_mntent.c
index 9fecc924a..7ac312ee1 100644
--- a/mount/mount_mntent.c
+++ b/mount/mount_mntent.c
@@ -21,7 +21,7 @@
static unsigned char need_escaping[] = { ' ', '\t', '\n', '\\' };
static char *
-mangle(const unsigned char *s) {
+mangle(const char *s) {
char *ss, *sp;
int n;