File pc_lookup-replace-PTR-with-void.patch of Package mpiP

commit 21d336356fcf152e832a17dfe4204699faf39013
Author: Nicolas Morey <[email protected]>
Date:   Thu Sep 5 14:58:58 2024 +0200

    pc_lookup: replace PTR with void
    
    Fixes compilation issues with newer glibc
    
    Signed-off-by: Nicolas Morey <[email protected]>

diff --git pc_lookup.c pc_lookup.c
index 4c595645813a..4c2a1a30e693 100644
--- pc_lookup.c
+++ pc_lookup.c
@@ -115,7 +115,7 @@ static void
 find_address_in_section (abfd, section, data)
      bfd *abfd;
      asection *section;
-     PTR data;
+     void* data;
 {
   bfd_vma vma;
   bfd_size_type size;
@@ -435,7 +435,7 @@ mpiP_find_src_loc (void *i_addr_hex, char **o_file_str, int *o_lineno,
 
   found = FALSE;
 
-  bfd_map_over_sections (abfd, find_address_in_section, (PTR) NULL);
+  bfd_map_over_sections (abfd, find_address_in_section, (void*) NULL);
 
 #ifdef SO_LOOKUP
   if (!found)
@@ -477,7 +477,7 @@ mpiP_find_src_loc (void *i_addr_hex, char **o_file_str, int *o_lineno,
           mpiPi_msg_debug ("fso->bfd->sections is %p\n",
                            ((bfd *) (fso->bfd))->sections);
           bfd_map_over_sections (fso->bfd, find_address_in_section,
-                                 (PTR) NULL);
+                                 (void*) NULL);
         }
 
     }
openSUSE Build Service is sponsored by
OSZAR »