summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-03-17 23:51:08 +0200
committerToomas Soome <tsoome@me.com>2021-09-17 19:18:35 +0300
commitafe82bdcea10db1bde6221f8e9322146b418270d (patch)
tree40f211103f50a2d07537e1778bba7a6d87634515
parentaa2e4271d40e09086d298155a3a5342859fe4f99 (diff)
downloadillumos-joyent-afe82bdcea10db1bde6221f8e9322146b418270d.tar.gz
14072 picl: cast between incompatible function types
Reviewed by: Robert Mustacchi <rm+illumos@fingolfin.org> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/psvcplugin.c9
1 files 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));