dequeue() does not need a snac argument.

This commit is contained in:
default 2023-02-02 04:44:30 +01:00
parent 56c4711caf
commit ee77e45abb
3 changed files with 4 additions and 4 deletions

View File

@ -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
View File

@ -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 */

2
snac.h
View File

@ -130,7 +130,7 @@ void enqueue_email(snac *snac, xs_str *msg, int retries);
void enqueue_message(snac *snac, char *msg);
d_char *queue(snac *snac);
d_char *dequeue(snac *snac, char *fn);
xs_dict *dequeue(const char *fn);
void purge(snac *snac);
void purge_all(void);