X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fms_task.c;h=f2cb8657d678bc2088aea873155fc6962cdd404a;hb=5dcfd8799e2ab7d60b8d3b352474d43556d37dcf;hp=631c35ea1a7bf4ab883a4a7efb320973ffa684f9;hpb=4408f5168a2640feb59f16987833b36f206176cb;p=awesomized%2Flibmemcached diff --git a/clients/ms_task.c b/clients/ms_task.c index 631c35ea..f2cb8657 100644 --- a/clients/ms_task.c +++ b/clients/ms_task.c @@ -9,18 +9,14 @@ * */ -#include "config.h" +#include "mem_config.h" -#include -#if TIME_WITH_SYS_TIME +#if defined(HAVE_SYS_TIME_H) # include +#endif + +#if defined(HAVE_TIME_H) # include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif #endif #include "ms_thread.h" @@ -1053,7 +1049,7 @@ static void ms_update_task_result(ms_conn_t *c) * * @param c, pointer of the concurrency * - * @return int, if success, return 0, else return -1 + * @return int, if success, return EXIT_SUCCESS, else return -1 */ static int ms_run_getset_task(ms_conn_t *c) { @@ -1085,7 +1081,7 @@ static int ms_run_getset_task(ms_conn_t *c) return -1; } - return 0; + return EXIT_SUCCESS; } /* ms_run_getset_task */ @@ -1094,7 +1090,7 @@ static int ms_run_getset_task(ms_conn_t *c) * * @param c, pointer of the concurrency * - * @return int, if success, return 0, else return -1 + * @return int, if success, return EXIT_SUCCESS, else return -1 */ int ms_exec_task(struct conn *c) { @@ -1110,5 +1106,5 @@ int ms_exec_task(struct conn *c) } } - return 0; + return EXIT_SUCCESS; } /* ms_exec_task */