mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 09:09:21 +00:00
Fix unused variables error
This commit is contained in:
parent
378cd8fb19
commit
f684e15247
1 changed files with 2 additions and 4 deletions
|
|
@ -860,7 +860,7 @@ int linphone_core_import_friends_from_vcard4_file(LinphoneCore *lc, const char *
|
|||
|
||||
#ifndef VCARD_ENABLED
|
||||
ms_error("vCard support wasn't enabled at compilation time");
|
||||
#else
|
||||
#endif
|
||||
while (vcards != NULL && vcards->data != NULL) {
|
||||
LinphoneVCard *vcard = (LinphoneVCard *)vcards->data;
|
||||
LinphoneFriend *lf = linphone_friend_new_from_vcard(vcard);
|
||||
|
|
@ -878,7 +878,6 @@ int linphone_core_import_friends_from_vcard4_file(LinphoneCore *lc, const char *
|
|||
}
|
||||
#ifndef FRIENDS_SQL_STORAGE_ENABLED
|
||||
linphone_core_write_friends_config(lc);
|
||||
#endif
|
||||
#endif
|
||||
return count;
|
||||
}
|
||||
|
|
@ -895,7 +894,7 @@ void linphone_core_export_friends_as_vcard4_file(LinphoneCore *lc, const char *v
|
|||
|
||||
#ifndef VCARD_ENABLED
|
||||
ms_error("vCard support wasn't enabled at compilation time");
|
||||
#else
|
||||
#endif
|
||||
while (friends != NULL && friends->data != NULL) {
|
||||
LinphoneFriend *lf = (LinphoneFriend *)friends->data;
|
||||
LinphoneVCard *vcard = linphone_friend_get_vcard(lf);
|
||||
|
|
@ -907,7 +906,6 @@ void linphone_core_export_friends_as_vcard4_file(LinphoneCore *lc, const char *v
|
|||
}
|
||||
friends = ms_list_next(friends);
|
||||
}
|
||||
#endif
|
||||
|
||||
fclose(file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue