OSDN Git Service

errr errr_tmp; というグローバル変数を以前にコード整理したときに消して
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 27 Aug 2002 16:09:44 +0000 (16:09 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 27 Aug 2002 16:09:44 +0000 (16:09 +0000)
しまったが、MPWでは一箇所でこれを使っていたのでエラーが出た。
ローカル変数に書き変えて修正。

src/util.c

index bb181e9..050f735 100644 (file)
@@ -684,9 +684,12 @@ int fd_make(cptr file, int mode)
 # if defined(MACINTOSH) && defined(MAC_MPW)
 
        /* setting file type and creator -- AR */
-       errr_tmp = open(buf, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, mode);
-       fsetfileinfo(file, _fcreator, _ftype);
-       return(errr_tmp);
+        {
+                errr errr_tmp;
+                errr_tmp = open(buf, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, mode);
+                fsetfileinfo(file, _fcreator, _ftype);
+                return(errr_tmp);
+        }
 
 # else
        /* Create the file, fail if exists, write-only, binary */