Browse Source

[core] remove unused member con->in_joblist

personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
0ec41d6d80
  1. 2
      src/base.h
  2. 2
      src/joblist.c
  3. 1
      src/server.c

2
src/base.h

@ -413,8 +413,6 @@ typedef struct connection {
/* response */
int got_response;
int in_joblist;
connection_type mode;
void **plugin_ctx; /* plugin connection specific config */

2
src/joblist.c

@ -8,8 +8,6 @@
#include <string.h>
int joblist_append(server *srv, connection *con) {
if (con->in_joblist) return 0;
if (srv->joblist->size == 0) {
srv->joblist->size = 16;
srv->joblist->ptr = malloc(sizeof(*srv->joblist->ptr) * srv->joblist->size);

1
src/server.c

@ -1812,7 +1812,6 @@ static int server_main (server * const srv, int argc, char **argv) {
for (ndx = 0; ndx < srv->joblist->used; ndx++) {
connection *con = srv->joblist->ptr[ndx];
connection_state_machine(srv, con);
con->in_joblist = 0;
}
srv->joblist->used = 0;

Loading…
Cancel
Save