windows build ugliness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6272 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
524dc2ab6a
commit
bd4367052d
|
@ -989,7 +989,7 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
|
||||||
int read_fd = -1;
|
int read_fd = -1;
|
||||||
switch_size_t cur = 0, ml = 0;
|
switch_size_t cur = 0, ml = 0;
|
||||||
char *q, *cmd, buf[2048], ebuf[8192];
|
char *q, *cmd, buf[2048], ebuf[8192];
|
||||||
const char *tcmd, *targ;
|
char *tcmd, *targ;
|
||||||
|
|
||||||
if ((read_fd = open(file, O_RDONLY, 0)) < 0) {
|
if ((read_fd = open(file, O_RDONLY, 0)) < 0) {
|
||||||
return read_fd;
|
return read_fd;
|
||||||
|
@ -1018,7 +1018,7 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tcmd = switch_stristr(bp, "<X-pre-process"))) {
|
if ((tcmd = (char *)switch_stristr(bp, "<X-pre-process"))) {
|
||||||
if ((e = strstr(tcmd, "/>"))) {
|
if ((e = strstr(tcmd, "/>"))) {
|
||||||
*e += 2;
|
*e += 2;
|
||||||
*e = '\0';
|
*e = '\0';
|
||||||
|
@ -1027,15 +1027,15 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(tcmd = switch_stristr(tcmd, "cmd"))) {
|
if (!(tcmd = (char *)switch_stristr(tcmd, "cmd"))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(tcmd = switch_stristr(tcmd, "="))) {
|
if (!(tcmd = (char *)switch_stristr(tcmd, "="))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(tcmd = switch_stristr(tcmd, "\""))) {
|
if (!(tcmd = (char *)switch_stristr(tcmd, "\""))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1046,15 +1046,15 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
|
||||||
*e++ = '\0';
|
*e++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(targ = switch_stristr(e, "data"))) {
|
if (!(targ = (char *)switch_stristr(e, "data"))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(targ = switch_stristr(targ, "="))) {
|
if (!(targ = (char *)switch_stristr(targ, "="))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(targ = switch_stristr(targ, "\""))) {
|
if (!(targ = (char *)switch_stristr(targ, "\""))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue