From 9e1be97ddf0037f19204a47b85db0b0f4e8b4c20 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 8 Apr 1997 15:24:17 +0000 Subject: Fixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS --- Mac/Compat/getwd.c | 8 ++++---- Mac/Compat/macstat.c | 4 ++-- 2 files changed, 6 insertions(+), 6 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; diff --git a/Mac/Compat/macstat.c b/Mac/Compat/macstat.c index a1265af..8c67994 100644 --- a/Mac/Compat/macstat.c +++ b/Mac/Compat/macstat.c @@ -29,9 +29,9 @@ macstat(path, buf) pb.d.ioDrDirID = 0; pb.f.ioFVersNum = 0; /* Fix found by Timo! See Tech Note 102 */ if (hfsrunning()) - err = PBGetCatInfo((CInfoPBPtr)&pb, FALSE); + err = PBGetCatInfoSync((CInfoPBPtr)&pb); else - err = PBGetFInfo((ParmBlkPtr)&pb, FALSE); + err = PBGetFInfoSync((ParmBlkPtr)&pb); if (err != noErr) { errno = ENOENT; return -1; -- cgit v0.12