diff options
Diffstat (limited to 'usr/src/lib/libproc/common')
-rw-r--r-- | usr/src/lib/libproc/common/Psymtab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/lib/libproc/common/Psymtab.c b/usr/src/lib/libproc/common/Psymtab.c index 3f1da287e1..d60b2eb508 100644 --- a/usr/src/lib/libproc/common/Psymtab.c +++ b/usr/src/lib/libproc/common/Psymtab.c @@ -2909,7 +2909,7 @@ Psymbol_iter_by_lmid(struct ps_prochandle *P, Lmid_t lmid, const char *object_name, int which, int mask, proc_sym_f *func, void *cd) { return (Psymbol_iter_com(P, lmid, object_name, which, mask, - PRO_NATURAL, (proc_xsym_f *)func, cd)); + PRO_NATURAL, (proc_xsym_f *)(uintptr_t)func, cd)); } int @@ -2917,7 +2917,7 @@ Psymbol_iter(struct ps_prochandle *P, const char *object_name, int which, int mask, proc_sym_f *func, void *cd) { return (Psymbol_iter_com(P, PR_LMID_EVERY, object_name, which, mask, - PRO_NATURAL, (proc_xsym_f *)func, cd)); + PRO_NATURAL, (proc_xsym_f *)(uintptr_t)func, cd)); } int @@ -2925,7 +2925,7 @@ Psymbol_iter_by_addr(struct ps_prochandle *P, const char *object_name, int which, int mask, proc_sym_f *func, void *cd) { return (Psymbol_iter_com(P, PR_LMID_EVERY, object_name, which, mask, - PRO_BYADDR, (proc_xsym_f *)func, cd)); + PRO_BYADDR, (proc_xsym_f *)(uintptr_t)func, cd)); } int @@ -2933,7 +2933,7 @@ Psymbol_iter_by_name(struct ps_prochandle *P, const char *object_name, int which, int mask, proc_sym_f *func, void *cd) { return (Psymbol_iter_com(P, PR_LMID_EVERY, object_name, which, mask, - PRO_BYNAME, (proc_xsym_f *)func, cd)); + PRO_BYNAME, (proc_xsym_f *)(uintptr_t)func, cd)); } /* |