X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fms_setting.c;h=ac76853fbb1289192dc88e05aa5a2ae4843a1149;hb=0bbb14508a90f9af985efc198428e1560ab9b44a;hp=eb5e40557ba512149a334d65ad9ea368a6668ed3;hpb=613d2abe710af39d6daf34673462cd467ed6499a;p=m6w6%2Flibmemcached diff --git a/clients/ms_setting.c b/clients/ms_setting.c index eb5e4055..ac76853f 100644 --- a/clients/ms_setting.c +++ b/clients/ms_setting.c @@ -54,7 +54,7 @@ ms_setting_st ms_setting; /* store the settings specified by user */ /* read setting from configuration file */ static void ms_get_serverlist(char *str); -static int ms_get_cpu_count(void); +static uint32_t ms_get_cpu_count(void); ms_conf_type_t ms_get_conf_type(char *line); static int ms_is_line_data(char *line); static int ms_read_is_data(char *line, ssize_t nread); @@ -198,7 +198,7 @@ static void ms_get_serverlist(char *str) * * @return return the cpu count if get, else return 1 */ -static int ms_get_cpu_count() +static uint32_t ms_get_cpu_count() { #ifdef HAVE__SC_NPROCESSORS_ONLN return sysconf(_SC_NPROCESSORS_CONF);