Loading src/lib/bus/bus_example.c +1 −1 Original line number Diff line number Diff line Loading @@ -231,7 +231,7 @@ static bus_unpack_cb_res_t unpack_cb(void *msg, void *socket_udata) { static void unexpected_msg_cb(void *msg, int64_t seq_id, void *bus_udata, void *socket_udata) { printf("\n\n\nUNEXPECTED MESSAGE: %p, seq_id %lld, bus_udata %p, socket_udata %p\n\n\n\n", msg, seq_id, bus_udata, socket_udata); msg, (long long)seq_id, bus_udata, socket_udata); assert(false); } Loading src/lib/bus/listener.c +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ struct listener *listener_init(struct bus *b, struct bus_config *cfg) { for (int i = 0; i < MAX_QUEUE_MESSAGES; i++) { listener_msg *msg = &l->msgs[i]; uint8_t *p_id = &msg->id; uint8_t *p_id = (uint8_t *)&msg->id; *p_id = i; if (i < MAX_QUEUE_MESSAGES - 1) { /* forward link */ msg->next = &l->msgs[i + 1]; Loading src/lib/bus/sender.c +2 −2 Original line number Diff line number Diff line Loading @@ -1022,7 +1022,7 @@ static void attempt_to_enqueue_sending_request_message_to_listener(sender *s, struct bus *b = s->bus; BUS_LOG_SNPRINTF(b, 5, LOG_SENDER, b->udata, 128, "telling listener to expect response, with fd %d, seq_id %lld", fd, seq_id); fd, (long long)seq_id); struct listener *l = bus_get_listener_for_socket(s->bus, fd); Loading @@ -1048,7 +1048,7 @@ static void attempt_to_enqueue_request_sent_message_to_listener(sender *s, tx_in * successfully sent message. */ BUS_LOG_SNPRINTF(b, 3, LOG_SENDER, b->udata, 128, "telling listener to expect sent response, with box %p, seq_id %lld", (void *)info->u.notify.box, info->u.notify.box->out_seq_id); (void *)info->u.notify.box, (long long)info->u.notify.box->out_seq_id); struct listener *l = bus_get_listener_for_socket(s->bus, info->u.notify.fd); Loading Loading
src/lib/bus/bus_example.c +1 −1 Original line number Diff line number Diff line Loading @@ -231,7 +231,7 @@ static bus_unpack_cb_res_t unpack_cb(void *msg, void *socket_udata) { static void unexpected_msg_cb(void *msg, int64_t seq_id, void *bus_udata, void *socket_udata) { printf("\n\n\nUNEXPECTED MESSAGE: %p, seq_id %lld, bus_udata %p, socket_udata %p\n\n\n\n", msg, seq_id, bus_udata, socket_udata); msg, (long long)seq_id, bus_udata, socket_udata); assert(false); } Loading
src/lib/bus/listener.c +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ struct listener *listener_init(struct bus *b, struct bus_config *cfg) { for (int i = 0; i < MAX_QUEUE_MESSAGES; i++) { listener_msg *msg = &l->msgs[i]; uint8_t *p_id = &msg->id; uint8_t *p_id = (uint8_t *)&msg->id; *p_id = i; if (i < MAX_QUEUE_MESSAGES - 1) { /* forward link */ msg->next = &l->msgs[i + 1]; Loading
src/lib/bus/sender.c +2 −2 Original line number Diff line number Diff line Loading @@ -1022,7 +1022,7 @@ static void attempt_to_enqueue_sending_request_message_to_listener(sender *s, struct bus *b = s->bus; BUS_LOG_SNPRINTF(b, 5, LOG_SENDER, b->udata, 128, "telling listener to expect response, with fd %d, seq_id %lld", fd, seq_id); fd, (long long)seq_id); struct listener *l = bus_get_listener_for_socket(s->bus, fd); Loading @@ -1048,7 +1048,7 @@ static void attempt_to_enqueue_request_sent_message_to_listener(sender *s, tx_in * successfully sent message. */ BUS_LOG_SNPRINTF(b, 3, LOG_SENDER, b->udata, 128, "telling listener to expect sent response, with box %p, seq_id %lld", (void *)info->u.notify.box, info->u.notify.box->out_seq_id); (void *)info->u.notify.box, (long long)info->u.notify.box->out_seq_id); struct listener *l = bus_get_listener_for_socket(s->bus, info->u.notify.fd); Loading