mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
dos2unix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5668 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b2c2465a2e
commit
8dc23d384e
@ -966,16 +966,16 @@ static int preprocess(const char *file, int write_fd, int rlevel)
|
||||
}
|
||||
}
|
||||
|
||||
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 @@ static int preprocess(const char *file, int write_fd, int rlevel)
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user