Revision: 22898
          http://sourceforge.net/p/bibdesk/svn/22898
Author:   hofman
Date:     2018-10-31 18:50:30 +0000 (Wed, 31 Oct 2018)
Log Message:
-----------
Revert earlier commit, FVCacheFile still uses C++

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm    2018-10-31 
18:48:39 UTC (rev 22897)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCacheFile.mm    2018-10-31 
18:50:30 UTC (rev 22898)
@@ -124,7 +124,8 @@
         // use mkstemp to avoid race conditions; we can't share the cache for 
writing between processes anyway
         if ((mkstemp(tempName)) == -1) {
             // if this call fails the OS will probably crap out soon, so 
there's no point in dying gracefully
-            fprintf(stderr, "mkstemp failed \"%s\": %s\n", tempName, 
strerror(errno));
+            std::string errMsg = std::string("mkstemp failed \"") + tempName + 
"\"";
+            perror(errMsg.c_str());
             exit(1);
         }
         
@@ -199,7 +200,8 @@
             asl_close(client);        
         }
         else {
-            fprintf(stderr, "stat failed \"%s\": %s\n", path, strerror(errno));
+            std::string errMsg = std::string("stat failed \"") + path + "\"";
+            perror(errMsg.c_str());
         }
     }    
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to