From 938f18accacaef81c2cd0b0e2d7e8d6b4d7e4c60 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 9 Aug 2017 20:06:38 -0500 Subject: [PATCH] SOLARIS: Cast modlookup result modlookup returns a uintptr_t, not an actual pointer. Cast the result to a pointer to avoid a compiler warning. Change-Id: I33cf4600d21a713be3f90c1b6d626bdab2c3da28 Reviewed-on: https://gerrit.openafs.org/12705 Reviewed-by: Michael Meffie Reviewed-by: Marcio Brito Barbosa Reviewed-by: Mark Vitale Tested-by: BuildBot Reviewed-by: Andrew Deason --- src/afs/SOLARIS/osi_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/SOLARIS/osi_vfsops.c b/src/afs/SOLARIS/osi_vfsops.c index 98015a504d..b30386a864 100644 --- a/src/afs/SOLARIS/osi_vfsops.c +++ b/src/afs/SOLARIS/osi_vfsops.c @@ -374,7 +374,7 @@ do_mod_lookup(const char * mod, const char * sym) { void * ptr; - ptr = modlookup(mod, sym); + ptr = (void*)modlookup(mod, sym); if (ptr == NULL) { afs_warn("modlookup failed for symbol '%s' in module '%s'\n", sym, mod);