projects
/
apps
/
native
/
tizen-things-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d459bd
)
replace value to macro for HTTP OK
38/182838/1
author
Jeonghoon Park
<jh1979.park@samsung.com>
Thu, 28 Jun 2018 08:44:51 +0000
(17:44 +0900)
committer
Jeonghoon Park
<jh1979.park@samsung.com>
Thu, 28 Jun 2018 08:44:51 +0000
(17:44 +0900)
Change-Id: I196e4be41b04106430ca3a05347b00c322688338
daemon/src/ttd-cmd-mgr.c
patch
|
blob
|
history
diff --git
a/daemon/src/ttd-cmd-mgr.c
b/daemon/src/ttd-cmd-mgr.c
index
0d231ed
..
a4c719c
100644
(file)
--- 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;