diff --git a/include/dect/raw.h b/include/dect/raw.h index 0db811f..39acad3 100644 --- a/include/dect/raw.h +++ b/include/dect/raw.h @@ -12,7 +12,7 @@ extern "C" { struct dect_raw_ops { void (*raw_rcv)(struct dect_handle *dh, struct dect_fd *dfd, - uint8_t slot, struct dect_msg_buf *mb); + struct dect_msg_buf *mb); }; extern struct dect_fd *dect_raw_socket(struct dect_handle *dh); diff --git a/src/raw.c b/src/raw.c index 4c0aef3..27e8b1d 100644 --- a/src/raw.c +++ b/src/raw.c @@ -137,7 +137,7 @@ static void dect_raw_event(struct dect_handle *dh, struct dect_fd *dfd, mb->mfn = aux->mfn; mb->frame = aux->frame; - mb->slot = slot; + mb->slot = aux->slot; dh->ops->raw_ops->raw_rcv(dh, dfd, mb); }