[Freeswitch-svn] [commit] r5668 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Tue Aug 28 11:31:52 EDT 2007
Author: mikej
Date: Tue Aug 28 11:31:52 2007
New Revision: 5668
Modified:
freeswitch/trunk/src/switch_xml.c
Log:
dos2unix
Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c (original)
+++ freeswitch/trunk/src/switch_xml.c Tue Aug 28 11:31:52 2007
@@ -966,16 +966,16 @@
}
}
- if ((cmd = strstr(bp, "<!--#"))) {
- if(write(write_fd, bp, (unsigned) (cmd - bp)) != (cmd - bp)) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
- }
+ if ((cmd = strstr(bp, "<!--#"))) {
+ if(write(write_fd, bp, (unsigned) (cmd - bp)) != (cmd - bp)) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
+ }
if ((e = strstr(cmd, "-->"))) {
*e = '\0';
- e += 3;
- if(write(write_fd, e, (unsigned) strlen(e)) != (int) strlen(e)) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
- }
+ e += 3;
+ if(write(write_fd, e, (unsigned) strlen(e)) != (int) strlen(e)) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
+ }
} else {
ml++;
}
@@ -1031,11 +1031,11 @@
continue;
}
-
- if(write(write_fd, bp, (unsigned) cur) != (int) cur) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
- }
-
+
+ if(write(write_fd, bp, (unsigned) cur) != (int) cur) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
+ }
+
}
close(read_fd);
More information about the Freeswitch-svn
mailing list