mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 16:53:37 +00:00
dequeue() does not need a snac argument.
This commit is contained in:
parent
56c4711caf
commit
ee77e45abb
3 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
2
snac.h
2
snac.h
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue