From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Function always returns 0, so there is sense to make it void function. --- lib/sdp.c | 6 +----- lib/sdp_lib.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/sdp.c b/lib/sdp.c index e5e4622..da26b78 100644 --- a/lib/sdp.c +++ b/lib/sdp.c @@ -2380,10 +2380,8 @@ static sdp_data_t *access_proto_to_dataseq(sdp_record_t *rec, sdp_list_t *proto) * * This function replaces the existing sdp_access_proto_t * structure (if any) with the new one specified. - * - * returns 0 if successful or -1 if there is a failure. */ -int sdp_set_access_protos(sdp_record_t *rec, const sdp_list_t *ap) +void sdp_set_access_protos(sdp_record_t *rec, const sdp_list_t *ap) { const sdp_list_t *p; sdp_data_t *protos = NULL; @@ -2394,8 +2392,6 @@ int sdp_set_access_protos(sdp_record_t *rec, const sdp_list_t *ap) } sdp_attr_add(rec, SDP_ATTR_PROTO_DESC_LIST, protos); - - return 0; } int sdp_set_add_access_protos(sdp_record_t *rec, const sdp_list_t *ap) diff --git a/lib/sdp_lib.h b/lib/sdp_lib.h index 3ded393..72922d6 100644 --- a/lib/sdp_lib.h +++ b/lib/sdp_lib.h @@ -231,7 +231,7 @@ static inline int sdp_set_browse_groups(sdp_record_t *rec, sdp_list_t *seq) /* * Set the access protocols of the record to those specified in proto */ -int sdp_set_access_protos(sdp_record_t *rec, const sdp_list_t *proto); +void sdp_set_access_protos(sdp_record_t *rec, const sdp_list_t *proto); /* * Set the additional access protocols of the record to those specified in proto -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html