[Freeswitch-svn] [commit] r5677 - freeswitch/trunk/src/mod/xml_int/mod_xml_cdr

Freeswitch SVN anthm at freeswitch.org
Wed Aug 29 15:33:28 EDT 2007


Author: anthm
Date: Wed Aug 29 15:33:27 2007
New Revision: 5677

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

Log:
c'mon wtf

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c	Wed Aug 29 15:33:27 2007
@@ -88,7 +88,8 @@
 		if(!switch_strlen_zero(logdir)) {
 			if ((path = switch_mprintf("%s/xml_cdr/%s.cdr.xml", logdir, switch_core_session_get_uuid(session)))) {
 				if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
-					write(fd, xml_text, (unsigned) strlen(xml_text));
+					int wrote;
+					wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
 					close(fd);
 					fd = -1;
 				} else {
@@ -160,7 +161,8 @@
 
 			if ((path = switch_mprintf("%s/%s.cdr.xml", globals.errLogDir, switch_core_session_get_uuid(session)))) {
 				if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
-					write(fd, xml_text, (unsigned) strlen(xml_text));
+					int wrote;
+					wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
 					close(fd);
 					fd = -1;
 				} else {



More information about the Freeswitch-svn mailing list