Adjust use of inter-thread-queue with libosmocore API change

during the libosmocore it_q patch review there was some small
API change.

Change-Id: I6a42000057f2efb4554b508debe4312e8f19a745
This commit is contained in:
Harald Welte 2021-01-06 11:15:57 +01:00
parent b76ce452ff
commit f7434c687f
2 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,7 @@ struct cbc_message *cbc_message_by_id(uint16_t message_id);
int peer_new_cbc_message(struct cbc_peer *peer, struct cbc_message *cbcmsg);
/* rest_it_op.c */
void rest2main_read_cb(struct osmo_it_q *q, void *item);
void rest2main_read_cb(struct osmo_it_q *q, struct llist_head *item);
/* smscb_*fsm.c */

View File

@ -23,6 +23,7 @@
#include <errno.h>
#include <pthread.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/it_q.h>
#include "rest_it_op.h"
@ -82,9 +83,9 @@ int rest_it_op_send_and_wait(struct rest_it_op *op)
***********************************************************************/
void rest2main_read_cb(struct osmo_it_q *q, void *item)
void rest2main_read_cb(struct osmo_it_q *q, struct llist_head *item)
{
struct rest_it_op *op = item;
struct rest_it_op *op = container_of(item, struct rest_it_op, list);
struct cbc_message *cbc_msg;
LOGP(DREST, LOGL_DEBUG, "%s(op=%p) from %lu\n", __func__, op, pthread_self());