mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
dequeue() does not need a snac argument.
This commit is contained in:
parent
56c4711caf
commit
ee77e45abb
@ -1169,7 +1169,7 @@ void process_queue(snac *snac)
|
||||
xs_str *fn;
|
||||
|
||||
while (xs_list_iter(&p, &fn)) {
|
||||
xs *q_item = dequeue(snac, fn);
|
||||
xs *q_item = dequeue(fn);
|
||||
|
||||
if (q_item == NULL) {
|
||||
snac_log(snac, xs_fmt("process_queue q_item error"));
|
||||
|
4
data.c
4
data.c
@ -1439,11 +1439,11 @@ d_char *queue(snac *snac)
|
||||
}
|
||||
|
||||
|
||||
d_char *dequeue(snac *snac, char *fn)
|
||||
xs_dict *dequeue(const char *fn)
|
||||
/* dequeues a message */
|
||||
{
|
||||
FILE *f;
|
||||
d_char *obj = NULL;
|
||||
xs_dict *obj = NULL;
|
||||
|
||||
if ((f = fopen(fn, "r")) != NULL) {
|
||||
/* delete right now */
|
||||
|
Loading…
Reference in New Issue
Block a user