From 6c40236820fda8960af891f41aa9d53f8bbe50a2 Mon Sep 17 00:00:00 2001 From: Greg Banks Date: Mon, 3 Jul 2006 15:39:41 +1000 Subject: [PATCH] Fix warning about pointer signedness differing. --- support/nfs/nfs_mntent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/nfs/nfs_mntent.c b/support/nfs/nfs_mntent.c index b407d68..d1d124b 100644 --- a/support/nfs/nfs_mntent.c +++ b/support/nfs/nfs_mntent.c @@ -25,11 +25,12 @@ static unsigned char need_escaping[] = { ' ', '\t', '\n', '\\' }; static char * -mangle(const unsigned char *s) { +mangle(const char *arg) { + const unsigned char *s = (const unsigned char *)arg; char *ss, *sp; int n; - n = strlen(s); + n = strlen(arg); ss = sp = xmalloc(4*n+1); while(1) { for (n = 0; n < sizeof(need_escaping); n++) { -- 2.39.5