消除编译警告
This commit is contained in:
@@ -2301,7 +2301,7 @@ extern "C" int kni_init(){
|
||||
struct kni_htable_opt opt;
|
||||
memset(&opt, 0, sizeof(opt));
|
||||
kni_get_htable_opt(&opt, profile, "traceid2pme_htable", NULL, (void*)traceid2pme_htable_expire_notify_cb, local_logger);
|
||||
traceid2pme_htable = kni_create_htable("traceid2pme_htable", &opt, local_logger);
|
||||
traceid2pme_htable = kni_create_htable((char*)"traceid2pme_htable", &opt, local_logger);
|
||||
if(traceid2pme_htable == NULL){
|
||||
KNI_LOG_ERROR(local_logger, "Failed at create traceid2pme_htable");
|
||||
goto error_out;
|
||||
@@ -2313,7 +2313,7 @@ extern "C" int kni_init(){
|
||||
memset(&opt, 0, sizeof(opt));
|
||||
kni_get_htable_opt(&opt, profile, "tuple2stream_htable", (void*)tuple2stream_htable_data_free_cb, NULL, local_logger);
|
||||
for(int i = 0; i < g_kni_handle->thread_count; i++){
|
||||
MESA_htable_handle tuple2stream_htable = kni_create_htable("tuple2stream_htable", &opt, local_logger);
|
||||
MESA_htable_handle tuple2stream_htable = kni_create_htable((char*)"tuple2stream_htable", &opt, local_logger);
|
||||
if(tuple2stream_htable == NULL){
|
||||
KNI_LOG_ERROR(local_logger, "Failed at kni_create_htable, table = tuple2stream_htable");
|
||||
goto error_out;
|
||||
|
||||
Reference in New Issue
Block a user