projects
/
darkstat-debian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the host compiler for build tool c-ify.
[darkstat-debian]
/
http.c
diff --git
a/http.c
b/http.c
index
0cd6133
..
bd44ff7
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-1181,6
+1181,7
@@
void http_poll(fd_set *recv_set, fd_set *send_set)
void http_stop(void) {
struct connection *conn;
void http_stop(void) {
struct connection *conn;
+ struct connection *next;
unsigned int i;
free(http_base_url);
unsigned int i;
free(http_base_url);
@@
-1192,7
+1193,7
@@
void http_stop(void) {
insocks = NULL;
/* Close in-flight connections. */
insocks = NULL;
/* Close in-flight connections. */
- LIST_FOREACH
(conn, &connlist, entries
) {
+ LIST_FOREACH
_SAFE(conn, &connlist, entries, next
) {
LIST_REMOVE(conn, entries);
free_connection(conn);
free(conn);
LIST_REMOVE(conn, entries);
free_connection(conn);
free(conn);