]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fix warning about pointer signedness differing.
authorGreg Banks <gnb@melbourne.sgi.com>
Mon, 3 Jul 2006 05:39:41 +0000 (15:39 +1000)
committerGreg Banks <gnb@melbourne.sgi.com>
Mon, 3 Jul 2006 05:39:41 +0000 (15:39 +1000)
support/nfs/nfs_mntent.c

index b407d6844cbe08f3aa040c4b5b24b7a2ecf7c824..d1d124bcac6efa8b68937dc1db2bf66a860fcadc 100644 (file)
 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++) {