mcst-linux-kernel/patches-2024.06.26/ucx-1.9.0/0012-Replace-PTR-with-void....

16 lines
620 B
Diff

--- a/src/ucs/debug/debug.c 2024-04-16 17:00:12.344712067 +0300
+++ b/src/ucs/debug/debug.c 2024-04-16 17:01:35.860766093 +0300
@@ -272,10 +272,10 @@
goto err_close;
}
- symcount = bfd_read_minisymbols(file->abfd, 0, (PTR)&file->syms, &size);
+ symcount = bfd_read_minisymbols(file->abfd, 0, (void *)&file->syms, &size);
if (symcount == 0) {
free(file->syms);
- symcount = bfd_read_minisymbols(file->abfd, 1, (PTR)&file->syms, &size);
+ symcount = bfd_read_minisymbols(file->abfd, 1, (void *)&file->syms, &size);
}
if (symcount < 0) {
goto err_close;