From 7647936541a6215f600567469bf78fd123e87403 Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Mon, 8 Oct 2007 12:15:25 -0700 Subject: [PATCH] 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 --- mount/mount_mntent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5