File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ unsafe fn get_local_map(handle: Handle) -> TaskLocalMap {
8383
8484unsafe fn get_task_local_map ( task : * rust_task ) -> TaskLocalMap {
8585
86- extern fn cleanup_task_local_map_ ( map_ptr : * libc:: c_void ) {
86+ extern fn cleanup_task_local_map_extern_cb ( map_ptr : * libc:: c_void ) {
8787 cleanup_task_local_map ( map_ptr) ;
8888 }
8989
@@ -97,7 +97,7 @@ unsafe fn get_task_local_map(task: *rust_task) -> TaskLocalMap {
9797 // Use reinterpret_cast -- transmute would take map away from us also.
9898 rt:: rust_set_task_local_data (
9999 task, cast:: transmute ( map) ) ;
100- rt:: rust_task_local_data_atexit ( task, cleanup_task_local_map_ ) ;
100+ rt:: rust_task_local_data_atexit ( task, cleanup_task_local_map_extern_cb ) ;
101101 // Also need to reference it an extra time to keep it for now.
102102 let nonmut = cast:: transmute :: < TaskLocalMap ,
103103 @~[ Option < TaskLocalElement > ] > ( map) ;
You can’t perform that action at this time.
0 commit comments