Kaydet (Commit) 5bc76cda authored tarafından Guido van Rossum's avatar Guido van Rossum

add casts for __SC__

üst 8318f2fb
...@@ -62,7 +62,7 @@ getwd(cwd) ...@@ -62,7 +62,7 @@ getwd(cwd)
sprintf(cwd, "I/O error %d in PBHGetVol", err); sprintf(cwd, "I/O error %d in PBHGetVol", err);
return NULL; return NULL;
} }
ecwd= strchr(p2cstr((unsigned char*)cwd), EOS); ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
ebuf= buf; ebuf= buf;
*ebuf = EOS; *ebuf = EOS;
...@@ -81,7 +81,7 @@ getwd(cwd) ...@@ -81,7 +81,7 @@ getwd(cwd)
return NULL; return NULL;
} }
dirid= pb.d.ioDrParID; dirid= pb.d.ioDrParID;
ebuf += strlen(p2cstr((unsigned char *)ebuf)); ebuf += strlen((const char *)p2cstr((unsigned char *)ebuf));
/* Should check for buf overflow */ /* Should check for buf overflow */
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment