fix warnings

This commit is contained in:
Simon Morlat 2017-02-08 09:12:52 +01:00
parent 7a13e47f69
commit b551bb92cd
4 changed files with 6 additions and 4 deletions

View file

@ -87,5 +87,5 @@ LinphoneAuthInfo *linphone_factory_create_auth_info(const LinphoneFactory *facto
}
LinphoneVcard *linphone_factory_create_vcard(LinphoneFactory *factory) {
return linphone_vcard_new();
return _linphone_vcard_new();
}

View file

@ -963,7 +963,7 @@ int linphone_friend_list_import_friends_from_vcard4_file(LinphoneFriendList *lis
}
linphone_friend_unref(lf);
} else {
linphone_vcard_free(vcard);
linphone_vcard_unref(vcard);
}
vcards_iterator = bctbx_list_next(vcards_iterator);
}
@ -1002,7 +1002,7 @@ int linphone_friend_list_import_friends_from_vcard4_buffer(LinphoneFriendList *l
}
linphone_friend_unref(lf);
} else {
linphone_vcard_free(vcard);
linphone_vcard_unref(vcard);
}
vcards_iterator = bctbx_list_next(vcards_iterator);
}

View file

@ -89,7 +89,7 @@ BELLE_SIP_INSTANCIATE_VPTR(LinphoneVcard, belle_sip_object_t,
FALSE
);
static LinphoneVcard* _linphone_vcard_new(void) {
LinphoneVcard* _linphone_vcard_new(void) {
LinphoneVcard* vCard = belle_sip_object_new(LinphoneVcard);
vCard->belCard = belcard::BelCardGeneric::create<belcard::BelCard>();
return vCard;

View file

@ -99,6 +99,8 @@ bool_t linphone_vcard_compare_md5_hash(LinphoneVcard *vCard);
void linphone_vcard_clean_cache(LinphoneVcard *vCard);
LinphoneVcard* _linphone_vcard_new(void);
#ifdef __cplusplus
}
#endif