From: Randy Dunlap Date: Mon, 8 Oct 2007 19:15:25 +0000 (-0700) Subject: mount: clean up gcc warnings (mount_mntent.c) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7647936541a6215f600567469bf78fd123e87403;p=util-linux 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 --- diff --git a/mount/mount_mntent.c b/mount/mount_mntent.c index 9fecc924..7ac312ee 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;