mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
Remove some dead assignments in ESL
This commit is contained in:
parent
fc40e4ab79
commit
2b1ae831d1
@ -736,7 +736,6 @@ ESL_DECLARE(esl_status_t) esl_listen(const char *host, esl_port_t port, esl_list
|
|||||||
|
|
||||||
if (server_sock != ESL_SOCK_INVALID) {
|
if (server_sock != ESL_SOCK_INVALID) {
|
||||||
closesocket(server_sock);
|
closesocket(server_sock);
|
||||||
server_sock = ESL_SOCK_INVALID;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
@ -805,7 +804,6 @@ ESL_DECLARE(esl_status_t) esl_listen_threaded(const char *host, esl_port_t port,
|
|||||||
|
|
||||||
if (server_sock != ESL_SOCK_INVALID) {
|
if (server_sock != ESL_SOCK_INVALID) {
|
||||||
closesocket(server_sock);
|
closesocket(server_sock);
|
||||||
server_sock = ESL_SOCK_INVALID;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
@ -825,12 +825,10 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
|
|||||||
|
|
||||||
if ((len + llen) > dlen) {
|
if ((len + llen) > dlen) {
|
||||||
char *m;
|
char *m;
|
||||||
char *old = buf;
|
|
||||||
dlen += (blocksize + (len + llen));
|
dlen += (blocksize + (len + llen));
|
||||||
if ((m = realloc(buf, dlen))) {
|
if ((m = realloc(buf, dlen))) {
|
||||||
buf = m;
|
buf = m;
|
||||||
} else {
|
} else {
|
||||||
buf = old;
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -854,12 +852,10 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
|
|||||||
|
|
||||||
if ((len + llen) > dlen) {
|
if ((len + llen) > dlen) {
|
||||||
char *m;
|
char *m;
|
||||||
char *old = buf;
|
|
||||||
dlen += (blocksize + (len + llen));
|
dlen += (blocksize + (len + llen));
|
||||||
if ((m = realloc(buf, dlen))) {
|
if ((m = realloc(buf, dlen))) {
|
||||||
buf = m;
|
buf = m;
|
||||||
} else {
|
} else {
|
||||||
buf = old;
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user