mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
Fix inconsistent reference & warnings
This commit is contained in:
parent
082acc055e
commit
61643cb550
1 changed files with 1 additions and 7 deletions
|
@ -119,12 +119,6 @@ qmem_init(int userid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t
|
|
||||||
qmem_num_pending(int userid)
|
|
||||||
{
|
|
||||||
return users[userid].qmem.num_pending;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qmem_is_cached(int dns_fd, int userid, struct query *q)
|
qmem_is_cached(int dns_fd, int userid, struct query *q)
|
||||||
/* Check if an answer for a particular query is cached in qmem
|
/* Check if an answer for a particular query is cached in qmem
|
||||||
|
@ -182,7 +176,7 @@ qmem_append(int userid, struct query *q)
|
||||||
* one to make space for new query */
|
* one to make space for new query */
|
||||||
QMEM_DEBUG(2, userid, "Full of pending queries! Replacing old query %d with new %d.",
|
QMEM_DEBUG(2, userid, "Full of pending queries! Replacing old query %d with new %d.",
|
||||||
buf->queries[buf->start].q.id, q->id);
|
buf->queries[buf->start].q.id, q->id);
|
||||||
send_data_or_ping(userid, &buf->queries[buf->start], 0, 0, NULL);
|
send_data_or_ping(userid, &buf->queries[buf->start].q, 0, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf->length < QMEM_LEN) {
|
if (buf->length < QMEM_LEN) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue