Mercurial > unleashed
changeset 20638:eed05926b1de
fm/modules/ext-event-transport: fix 64-bit compilation
author | Lauri Tirkkonen <lotheac@iki.fi> |
---|---|
date | Tue, 11 Jun 2019 17:49:50 +0300 |
parents | 3aa62e10f869 |
children | 8305065edf9f |
files | usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c Tue Jun 11 17:48:39 2019 +0300 +++ b/usr/src/cmd/fm/modules/common/ext-event-transport/fmevt_inbound.c Tue Jun 11 17:49:50 2019 +0300 @@ -489,7 +489,7 @@ fmevt_cb(sysevent_t *sep, void *arg) { char *ruleset = NULL, *rawclass, *rawsubclass; - uint32_t cbarg = (uint32_t)arg; + uint32_t cbarg = (uintptr_t)arg; nvlist_t *rawattr = NULL; struct fmevt_ppargs ea; nvlist_t *dtcr; @@ -602,7 +602,7 @@ cip->ci_cbarg & CBF_HV ? 'h' : 'l'); err = sysevent_evc_xsubscribe(cip->ci_binding, cip->ci_sid, - EC_ALL, fmevt_cb, (void *)cip->ci_cbarg, + EC_ALL, fmevt_cb, (void *)(uintptr_t)cip->ci_cbarg, cip->ci_sflags, subattr); if (err == EEXIST)