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 <mmeffie@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <marciobritobarbosa@yahoo.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
Andrew Deason 2017-08-09 20:06:38 -05:00
parent ed50afe5fc
commit 938f18acca

View File

@ -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);