lighttpd 1.4.x
https://www.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
507 B
20 lines
507 B
#include "first.h" |
|
|
|
#include "base.h" |
|
#include "connections.h" |
|
|
|
#include <stdlib.h> |
|
|
|
connections *connection_joblist; |
|
|
|
__attribute_cold__ |
|
static void connection_list_resize(connections *conns) { |
|
conns->size += 16; |
|
conns->ptr = realloc(conns->ptr, sizeof(*conns->ptr) * conns->size); |
|
force_assert(NULL != conns->ptr); |
|
} |
|
|
|
void connection_list_append(connections *conns, connection *con) { |
|
if (conns->used == conns->size) connection_list_resize(conns); |
|
conns->ptr[conns->used++] = con; |
|
}
|
|
|