summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fm/fmd/common/fmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/fm/fmd/common/fmd.c')
-rw-r--r--usr/src/cmd/fm/fmd/common/fmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/fm/fmd/common/fmd.c b/usr/src/cmd/fm/fmd/common/fmd.c
index 8177c81049..7369a68047 100644
--- a/usr/src/cmd/fm/fmd/common/fmd.c
+++ b/usr/src/cmd/fm/fmd/common/fmd.c
@@ -169,8 +169,8 @@ fmd_trmode_set(fmd_conf_param_t *pp, const char *value)
else
return (fmd_set_errno(EFMD_CONF_INVAL));
- fmd.d_thr_trace = (void (*)())func;
- pp->cp_value.cpv_ptr = (void *)func;
+ fmd.d_thr_trace = func;
+ pp->cp_value.cpv_ptr = func;
return (0);
}