]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add casts for __SC__
authorGuido van Rossum <guido@python.org>
Fri, 17 Feb 1995 14:24:11 +0000 (14:24 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Feb 1995 14:24:11 +0000 (14:24 +0000)
Mac/Compat/getwd.c

index e9a5455298126fca2a74d413ac6e5f612cbdb8dd..23810d1c423d053408300f20ae664899fc398ed0 100644 (file)
@@ -62,7 +62,7 @@ getwd(cwd)
                sprintf(cwd, "I/O error %d in PBHGetVol", err);
                return NULL;
        }
-       ecwd= strchr(p2cstr((unsigned char*)cwd), EOS);
+       ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
        ebuf= buf;
        *ebuf = EOS;
        
@@ -81,7 +81,7 @@ getwd(cwd)
                                return NULL;
                        }
                        dirid= pb.d.ioDrParID;
-                       ebuf += strlen(p2cstr((unsigned char *)ebuf));
+                       ebuf += strlen((const char *)p2cstr((unsigned char *)ebuf));
                        /* Should check for buf overflow */
                }
        }