File tree 1 file changed +4
-4
lines changed
openmp/libompd/gdb-plugin
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ ompd_rc_t _print(const char *str, int category) {
515
515
return ompd_rc_ok ;
516
516
}
517
517
518
- void _printf (char * format , ...) {
518
+ void _printf (const char * format , ...) {
519
519
va_list args ;
520
520
va_start (args , format );
521
521
char output [1024 ];
@@ -783,11 +783,11 @@ _thread_context(ompd_address_space_context_t *context, /* IN */
783
783
return ompd_rc_unsupported ;
784
784
long int tid ;
785
785
if (sizeof (long int ) >= 8 && sizeof_thread_id == 8 )
786
- tid = * (uint64_t * )thread_id ;
786
+ tid = * (const uint64_t * )thread_id ;
787
787
else if (sizeof (long int ) >= 4 && sizeof_thread_id == 4 )
788
- tid = * (uint32_t * )thread_id ;
788
+ tid = * (const uint32_t * )thread_id ;
789
789
else if (sizeof (long int ) >= 2 && sizeof_thread_id == 2 )
790
- tid = * (uint16_t * )thread_id ;
790
+ tid = * (const uint16_t * )thread_id ;
791
791
else
792
792
return ompd_rc_bad_input ;
793
793
PyObject * pFunc = PyObject_GetAttrString (pModule , "_thread_context" );
You can’t perform that action at this time.
0 commit comments