From: Greg Banks Date: Mon, 3 Jul 2006 05:39:41 +0000 (+1000) Subject: Fix warning about pointer signedness differing. X-Git-Tag: nfs-utils-1-0-9~28 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=6c40236820fda8960af891f41aa9d53f8bbe50a2;p=nfs-utils.git Fix warning about pointer signedness differing. --- 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++) {