diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1997-04-08 15:24:17 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1997-04-08 15:24:17 (GMT) |
commit | 9e1be97ddf0037f19204a47b85db0b0f4e8b4c20 (patch) | |
tree | db1df22ff7aa130aa1aa7fdf717c6b815efd990a /Mac/Compat/getwd.c | |
parent | 1aec32363f25693e0c3ff81feddf620850b4955d (diff) | |
download | cpython-9e1be97ddf0037f19204a47b85db0b0f4e8b4c20.zip cpython-9e1be97ddf0037f19204a47b85db0b0f4e8b4c20.tar.gz cpython-9e1be97ddf0037f19204a47b85db0b0f4e8b4c20.tar.bz2 |
Fixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS
Diffstat (limited to 'Mac/Compat/getwd.c')
-rw-r--r-- | Mac/Compat/getwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c index 23810d1..5fd7a24 100644 --- a/Mac/Compat/getwd.c +++ b/Mac/Compat/getwd.c @@ -57,9 +57,9 @@ getwd(cwd) /* First, get the default volume name and working directory ID. */ pb.w.ioNamePtr= (unsigned char *)cwd; - err= PBHGetVol(&pb.w, FALSE); + err= PBHGetVolSync(&pb.w); if (err != noErr) { - sprintf(cwd, "I/O error %d in PBHGetVol", err); + sprintf(cwd, "I/O error %d in PBHGetVolSync", err); return NULL; } ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS); @@ -75,9 +75,9 @@ getwd(cwd) pb.d.ioNamePtr= (unsigned char *) ++ebuf; pb.d.ioFDirIndex= -1; pb.d.ioDrDirID= dirid; - err= PBGetCatInfo((CInfoPBPtr)&pb.d, FALSE); + err= PBGetCatInfoSync((CInfoPBPtr)&pb.d); if (err != noErr) { - sprintf(cwd, "I/O error %d in PBGetCatInfo", err); + sprintf(cwd, "I/O error %d in PBGetCatInfoSync", err); return NULL; } dirid= pb.d.ioDrParID; |