From afe82bdcea10db1bde6221f8e9322146b418270d Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 17 Mar 2021 23:51:08 +0200 Subject: 14072 picl: cast between incompatible function types Reviewed by: Robert Mustacchi Reviewed by: Andrew Stormont Approved by: Dan McDonald --- usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/psvcplugin.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/psvcplugin.c b/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/psvcplugin.c index d40a90b211..23f020218a 100644 --- a/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/psvcplugin.c +++ b/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/psvcplugin.c @@ -518,8 +518,10 @@ static void lock_and_run(ETask_t *tp, int32_t obj_num) (void) pthread_mutex_unlock(&env_lock_mutex); } -static void run_policies(EInterval_t *ip) +static void * +run_policies(void *ptr) { + EInterval_t *ip = ptr; ETask_t *tp; int32_t i, j; @@ -545,14 +547,15 @@ static void run_policies(EInterval_t *ip) break; } } while (ip->interval); + + return (NULL); } static void thread_setup(EInterval_t *ip) { int32_t status; - status = pthread_create(&ip->thread, NULL, (void *(*)())run_policies, - ip); + status = pthread_create(&ip->thread, NULL, run_policies, ip); if (status != 0) { if (debug_flag) syslog(LOG_ERR, "%s", strerror(errno)); -- cgit v1.2.3