Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • dap/dap-sdk
1 result
Show changes
Commits on Source (3)
......@@ -1880,8 +1880,7 @@ static bool s_check_pinned_db_objs_callback() {
return false;
}
DAP_STATIC_INLINE void s_check_pinned_db_objs_callback_void()
{
static void s_check_pinned_db_objs_timer_callback(void* UNUSED_ARG a_arg) {
s_check_pinned_db_objs_callback();
}
......@@ -1981,7 +1980,7 @@ static int s_pinned_objs_group_init() {
s_get_all_pinned_objs_in_group(l_ret, l_ret_count);
dap_store_obj_free(l_ret, l_ret_count);
}
dap_proc_thread_timer_add_pri(NULL, s_check_pinned_db_objs_callback_void, NULL, 300000, true, DAP_QUEUE_MSG_PRIORITY_NORMAL); // 5 min wait before repin
dap_proc_thread_timer_add_pri(NULL, (dap_thread_timer_callback_t)s_check_pinned_db_objs_timer_callback, NULL, 300000, true, DAP_QUEUE_MSG_PRIORITY_NORMAL); // 5 min wait before repin
return 0;
}
......
......@@ -275,7 +275,7 @@ static int s_start(dap_plugin_manifest_t * a_manifest)
return -1;
}
l_module->pvt_data = l_pvt_data;
strncpy(l_module->name, a_manifest->name, sizeof(l_module->name)-1);
dap_strncpy(l_module->name, a_manifest->name, sizeof(l_module->name));
l_module->name[sizeof(l_module->name) - 1] = '\0'; // Warning avoid
l_module->type = l_type;
l_module->manifest = a_manifest;
......