[sword-cvs] sword/src/modules/common rawstr.cpp, 1.44, 1.45 rawstr4.cpp, 1.26, 1.27 zstr.cpp, 1.26, 1.27

sword at www.crosswire.org sword at www.crosswire.org
Sun May 16 13:59:09 MST 2004


Committed by: scribe

Update of /cvs/core/sword/src/modules/common
In directory www:/tmp/cvs-serv21967/src/modules/common

Modified Files:
	rawstr.cpp rawstr4.cpp zstr.cpp 
Log Message:
no message

Index: rawstr.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/common/rawstr.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- rawstr.cpp	12 May 2004 04:19:22 -0000	1.44
+++ rawstr.cpp	16 May 2004 20:59:05 -0000	1.45
@@ -20,6 +20,7 @@
 #include <utilfuns.h>
 #include <rawstr.h>
 #include <sysdata.h>
+#include <swlog.h>
 
 SWORD_NAMESPACE_START
 
@@ -62,8 +63,7 @@
 	datfd = FileMgr::getSystemFileMgr()->open(buf, fileMode|O_BINARY, true);
 
 	if (datfd < 0) {
-		buf.setFormatted("Error: %d", errno);
-		perror(buf);
+		SWLog::getSystemLog()->logError("%d", errno);
 	}
 
 	instance++;

Index: rawstr4.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/common/rawstr4.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- rawstr4.cpp	12 May 2004 04:19:22 -0000	1.26
+++ rawstr4.cpp	16 May 2004 20:59:05 -0000	1.27
@@ -19,6 +19,7 @@
 #include <utilfuns.h>
 #include <rawstr4.h>
 #include <sysdata.h>
+#include <swlog.h>
 
 SWORD_NAMESPACE_START
 
@@ -61,8 +62,7 @@
 	datfd = FileMgr::getSystemFileMgr()->open(buf, fileMode|O_BINARY, true);
 
 	if (datfd < 0) {
-		buf.setFormatted("Error: %d", errno);
-		perror(buf);
+		SWLog::getSystemLog()->logError("%d", errno);
 	}
 
 	instance++;

Index: zstr.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/common/zstr.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- zstr.cpp	2 Apr 2004 23:54:45 -0000	1.26
+++ zstr.cpp	16 May 2004 20:59:05 -0000	1.27
@@ -21,6 +21,7 @@
 
 #include <sysdata.h>
 #include <entriesblk.h>
+#include <swlog.h>
 
 SWORD_NAMESPACE_START
 
@@ -71,8 +72,7 @@
 	zdtfd = FileMgr::getSystemFileMgr()->open(buf, fileMode|O_BINARY, true);
 
 	if (datfd <= 0) {
-		buf.setFormatted("Error: %d", errno);
-		perror(buf);
+		SWLog::getSystemLog()->logError("%d", errno);
 	}
 
 	cacheBlock = 0;




More information about the sword-cvs mailing list