goto out;
}
- if (status == LB_STATUS_SUCCESS) {
+ if (status == (int)LB_STATUS_SUCCESS) {
new_content = strdup(content);
if (new_content) {
free(common->content);
handler->cbs.pinup.data = NULL;
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_PINUP_CHANGED);
}
}
handler->cbs.created.cb = NULL;
handler->cbs.created.data = NULL;
- if (reason == LB_STATUS_SUCCESS) {
+ if (reason == (int)LB_STATUS_SUCCESS) {
reason = LB_STATUS_ERROR_CANCEL;
}
ret = lb_sync_lb_fb(common);
- if (ret != LB_STATUS_SUCCESS) {
+ if (ret != (int)LB_STATUS_SUCCESS) {
ErrPrint("Failed to do sync FB (%s - %s) (%d)\n", pkgname, fbfile, ret);
} else {
struct dlist *l;
(void)lb_set_pd_fb(common, fbfile);
ret = lb_sync_pd_fb(common);
- if (ret != LB_STATUS_SUCCESS) {
+ if (ret != (int)LB_STATUS_SUCCESS) {
ErrPrint("Failed to do sync FB (%s - %s) (%d)\n", pkgname, fbfile, ret);
} else {
struct dlist *l;
if (!conf_manual_sync()) {
ret = lb_sync_lb_fb(common);
- if (ret != LB_STATUS_SUCCESS) {
+ if (ret != (int)LB_STATUS_SUCCESS) {
ErrPrint("Failed to do sync FB (%s - %s) (%d)\n", pkgname, util_basename(util_uri_to_path(id)), ret);
}
} else {
ret = LB_STATUS_SUCCESS;
}
- if (ret == LB_STATUS_SUCCESS) {
+ if (ret == (int)LB_STATUS_SUCCESS) {
struct dlist *l;
struct dlist *n;
goto out;
}
- common->is_pd_created = (status == LB_STATUS_SUCCESS);
+ common->is_pd_created = (status == (int)LB_STATUS_SUCCESS);
common->request.pd_created = 0;
if (common->is_pd_created) {
* Because, in the create callback, user can call create_pd function again.
*/
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_PD_CREATED);
}
}
* Because, in the create callback, user can call destroy_pd function again.
*/
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_PD_DESTROYED);
}
}
goto out;
}
- if (status == LB_STATUS_SUCCESS) {
+ if (status == (int)LB_STATUS_SUCCESS) {
lb_set_update_mode(common, active_mode);
}
handler->cbs.update_mode.data = NULL;
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_UPDATE_MODE_CHANGED);
}
}
* So the PD has no private resized event handler.
* Notify it via global event handler only.
*/
- if (status == LB_STATUS_SUCCESS) {
+ if (status == (int)LB_STATUS_SUCCESS) {
struct dlist *l;
lb_set_pdsize(common, w, h);
struct dlist *l;
struct dlist *n;
- if (status == LB_STATUS_SUCCESS) {
+ if (status == (int)LB_STATUS_SUCCESS) {
lb_set_size(common, w, h);
/*!
handler->cbs.size_changed.data = NULL;
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_LB_SIZE_CHANGED);
}
}
goto out;
}
- if (status == LB_STATUS_SUCCESS) {
+ if (status == (int)LB_STATUS_SUCCESS) {
lb_set_period(common, period);
}
handler->cbs.period_changed.data = NULL;
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_PERIOD_CHANGED);
}
}
goto out;
}
- if (status == LB_STATUS_SUCCESS) {
+ if (status == (int)LB_STATUS_SUCCESS) {
(void)lb_set_group(common, cluster, category);
}
handler->cbs.group_changed.data = NULL;
cb(handler, status, cbdata);
- } else if (status == LB_STATUS_SUCCESS) {
+ } else if (status == (int)LB_STATUS_SUCCESS) {
lb_invoke_event_handler(handler, LB_EVENT_GROUP_CHANGED);
}
}
}
DbgPrint("Master state: %d\n", state);
- if (state == 1 && make_connection() == LB_STATUS_SUCCESS) {
+ if (state == 1 && make_connection() == (int)LB_STATUS_SUCCESS) {
int ret;
ret = vconf_ignore_key_changed(VCONFKEY_MASTER_STARTED, master_started_cb);
DbgPrint("master_started vconf key de-registered [%d]\n", ret);