From: Jeonghoon Park Date: Thu, 28 Jun 2018 08:44:51 +0000 (+0900) Subject: replace value to macro for HTTP OK X-Git-Url: http://review.tizen.org/git/?p=apps%2Fnative%2Ftizen-things-daemon.git;a=commitdiff_plain;h=cab722491ff39770143f0c64ea3d691895e6d843 replace value to macro for HTTP OK Change-Id: I196e4be41b04106430ca3a05347b00c322688338 --- diff --git a/daemon/src/ttd-cmd-mgr.c b/daemon/src/ttd-cmd-mgr.c index 0d231ed..a4c719c 100644 --- a/daemon/src/ttd-cmd-mgr.c +++ b/daemon/src/ttd-cmd-mgr.c @@ -226,7 +226,7 @@ static gpointer _get_thread(gpointer data) else _D("res_code: %ld", res_code); - if (res_code == 200) // HTTP OK - success to get cmd + if (res_code == TTD_HTTP_OK) // HTTP OK - success to get cmd break; retry--; @@ -282,7 +282,7 @@ static gpointer _launch_thread(gpointer data) report = ttd_build_json_create_report(cmd_id, cmd_type, TTD_CMD_STATE_RUNNING, 0, "state update", NULL); ret = ttd_http_report_post(report, &r_code); - if (r_code != 200) { + if (r_code != TTD_HTTP_OK) { _E("failed to post report [%ld]", r_code); g_free(report); goto DONE_N_WAIT;