add casts for __SC__
diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c
index e9a5455..23810d1 100644
--- a/Mac/Compat/getwd.c
+++ b/Mac/Compat/getwd.c
@@ -62,7 +62,7 @@
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 @@
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 */
}
}