bfcp: use type unsigned for attribute count consistently
This commit is contained in:
parent
f1e10e7e98
commit
c2271b1821
4 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue