From: Guido van Rossum Date: Fri, 17 Feb 1995 14:24:11 +0000 (+0000) Subject: add casts for __SC__ X-Git-Tag: v1.2b4~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bc76cdaabbd1277b21aec8cc4e474a67d046267;p=thirdparty%2FPython%2Fcpython.git add casts for __SC__ --- diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c index e9a545529812..23810d1c423d 100644 --- a/Mac/Compat/getwd.c +++ b/Mac/Compat/getwd.c @@ -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 */ } }