Mercurial > unleashed
changeset 20637:3aa62e10f869
fm/modules/eversholt: fix 64-bit compilation
author | Lauri Tirkkonen <lotheac@iki.fi> |
---|---|
date | Tue, 11 Jun 2019 17:48:39 +0300 |
parents | 48348368a5f6 |
children | eed05926b1de |
files | usr/src/cmd/fm/modules/common/eversholt/config.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/fm/modules/common/eversholt/config.c Tue Jun 11 17:31:13 2019 +0300 +++ b/usr/src/cmd/fm/modules/common/eversholt/config.c Tue Jun 11 17:48:39 2019 +0300 @@ -587,7 +587,7 @@ static void prtcpucache(void *lhs, void *rhs, void *arg) { - out(O_ALTFP|O_VERB, "%u -> %p", (uint32_t)lhs, rhs); + out(O_ALTFP|O_VERB, "%u -> %p", (uintptr_t)lhs, rhs); } /* @@ -682,7 +682,7 @@ lut_walk(fromcfg->cpucache, (lut_cb)prtcpucache, NULL); if ((find = lut_lookup(fromcfg->cpucache, - (void *)id, NULL)) == NULL) + (void *)(uintptr_t)id, NULL)) == NULL) return (NULL); np = config_nodeize(find); @@ -700,7 +700,7 @@ static void printprop(const char *lhs, const char *rhs, void *arg) { - int flags = (int)arg; + intptr_t flags = (intptr_t)arg; out(flags, "\t%s=%s", lhs, rhs); } @@ -721,7 +721,7 @@ sep, cp->s, cp->num); if (cp->child == NULL) { out(flags, "%s", buf); - lut_walk(cp->props, (lut_cb)printprop, (void *)flags); + lut_walk(cp->props, (lut_cb)printprop, (void *)(intptr_t)flags); } else pconf(flags, cp->child, buf, strlen(buf), limit); if (cp->next)