X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fms_thread.c;h=264cca7c3a0e162b2d6a1083ca9dc77c33915fff;hb=b1b06372baf1d9877f450d3dc377d62aef1d2037;hp=299412a19488e01809d749aaf75872fc0e9a8ade;hpb=fe5b4854b046a8b0613c89303b04d7e60e4c8223;p=awesomized%2Flibmemcached diff --git a/clients/ms_thread.c b/clients/ms_thread.c index 299412a1..264cca7c 100644 --- a/clients/ms_thread.c +++ b/clients/ms_thread.c @@ -9,18 +9,16 @@ * */ -#include "config.h" +#include "mem_config.h" -#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" #include "ms_setting.h" #include "ms_atomic.h" @@ -146,7 +144,7 @@ static void ms_clock_handler(const int fd, const short which, void *arg) * * @param cpu, cpu index * - * @return if success, return 0, else return -1 + * @return if success, return EXIT_SUCCESS, else return -1 */ static uint32_t ms_set_thread_cpu_affinity(uint32_t cpu) { @@ -175,7 +173,7 @@ static uint32_t ms_set_thread_cpu_affinity(uint32_t cpu) * * @param thread_ctx, pointer of the thread context structure * - * @return if success, return 0, else return -1 + * @return if success, return EXIT_SUCCESS, else return -1 */ static int ms_setup_thread(ms_thread_ctx_t *thread_ctx) { @@ -231,7 +229,7 @@ static int ms_setup_thread(ms_thread_ctx_t *thread_ctx) } } - return 0; + return EXIT_SUCCESS; } /* ms_setup_thread */