Remove some dead assignments in ESL

This commit is contained in:
Travis Cross 2014-05-02 03:55:20 +00:00
parent fc40e4ab79
commit 2b1ae831d1
2 changed files with 0 additions and 6 deletions

View File

@ -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;

View File

@ -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();
} }
} }