diff --git a/include/re_bfcp.h b/include/re_bfcp.h index 444c7a2..35ed009 100644 --- a/include/re_bfcp.h +++ b/include/re_bfcp.h @@ -259,18 +259,18 @@ int bfcp_listen(struct bfcp_conn **bcp, enum bfcp_transp tp, struct sa *laddr, /* request */ int bfcp_request(struct bfcp_conn *bc, const struct sa *dst, enum bfcp_prim prim, uint32_t confid, uint16_t userid, - bfcp_resp_h *resph, void *arg, uint32_t attrc, ...); + bfcp_resp_h *resph, void *arg, unsigned attrc, ...); /* notify */ int bfcp_notify(struct bfcp_conn *bc, const struct sa *dst, enum bfcp_prim prim, uint32_t confid, uint16_t userid, - uint32_t attrc, ...); + unsigned attrc, ...); /* reply */ int bfcp_reply(struct bfcp_conn *bc, const struct bfcp_msg *req, - enum bfcp_prim prim, uint32_t attrc, ...); + enum bfcp_prim prim, unsigned attrc, ...); int bfcp_edreply(struct bfcp_conn *bc, const struct bfcp_msg *req, enum bfcp_err code, const uint8_t *details, size_t len); int bfcp_ereply(struct bfcp_conn *bc, const struct bfcp_msg *req, diff --git a/src/bfcp/bfcp.h b/src/bfcp/bfcp.h index 28fd6ad..dae0785 100644 --- a/src/bfcp/bfcp.h +++ b/src/bfcp/bfcp.h @@ -51,4 +51,4 @@ int bfcp_send(struct bfcp_conn *bc, const struct sa *dst, struct mbuf *mb); bool bfcp_handle_response(struct bfcp_conn *bc, const struct bfcp_msg *msg); int bfcp_vrequest(struct bfcp_conn *bc, const struct sa *dst, enum bfcp_prim prim, uint32_t confid, uint16_t userid, - bfcp_resp_h *resph, void *arg, uint32_t attrc, va_list *ap); + bfcp_resp_h *resph, void *arg, unsigned attrc, va_list *ap); diff --git a/src/bfcp/reply.c b/src/bfcp/reply.c index 24917fe..fb73ad7 100644 --- a/src/bfcp/reply.c +++ b/src/bfcp/reply.c @@ -39,7 +39,7 @@ static void tmr_handler(void *arg) * @return 0 if success, otherwise errorcode */ int bfcp_reply(struct bfcp_conn *bc, const struct bfcp_msg *req, - enum bfcp_prim prim, uint32_t attrc, ...) + enum bfcp_prim prim, unsigned attrc, ...) { va_list ap; int err; diff --git a/src/bfcp/request.c b/src/bfcp/request.c index 616d256..d2b5764 100644 --- a/src/bfcp/request.c +++ b/src/bfcp/request.c @@ -142,7 +142,7 @@ bool bfcp_handle_response(struct bfcp_conn *bc, const struct bfcp_msg *msg) int bfcp_vrequest(struct bfcp_conn *bc, const struct sa *dst, enum bfcp_prim prim, uint32_t confid, uint16_t userid, - bfcp_resp_h *resph, void *arg, uint32_t attrc, va_list *ap) + bfcp_resp_h *resph, void *arg, unsigned attrc, va_list *ap) { struct bfcp_ctrans *ct; int err; @@ -213,7 +213,7 @@ int bfcp_vrequest(struct bfcp_conn *bc, const struct sa *dst, */ int bfcp_request(struct bfcp_conn *bc, const struct sa *dst, enum bfcp_prim prim, uint32_t confid, uint16_t userid, - bfcp_resp_h *resph, void *arg, uint32_t attrc, ...) + bfcp_resp_h *resph, void *arg, unsigned attrc, ...) { va_list ap; int err; @@ -241,7 +241,7 @@ int bfcp_request(struct bfcp_conn *bc, const struct sa *dst, */ int bfcp_notify(struct bfcp_conn *bc, const struct sa *dst, enum bfcp_prim prim, uint32_t confid, uint16_t userid, - uint32_t attrc, ...) + unsigned attrc, ...) { va_list ap; int err;