* GirishAshok Joshi <girish.joshi@samsung.com>
* DoHyun Pyun <dh79.pyun@samsung.com>
*
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
ugd = (bt_ug_data *)ug_data;
- ret = dpm_context_remove_policy_changed_cb(ugd->dpm_handle, ugd->dpm_callback_id);
+ ret = dpm_remove_policy_changed_cb(ugd->dpm_handle, ugd->dpm_callback_id);
if (ret != DPM_ERROR_NONE)
BT_ERR("Fail to remove callback [%d]", ret);
}
size_left = strlen(vcard_buff);
- while (size_left) {
+ while (size_left > 0) {
int written = write(fd, vcard_buff, size_left);
if (written == -1) {
BT_ERR("write() failed: %d", errno);