summaryrefslogtreecommitdiff
path: root/usr/src/lib/fm/libfmd_snmp/common/problem.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/fm/libfmd_snmp/common/problem.c')
-rw-r--r--usr/src/lib/fm/libfmd_snmp/common/problem.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/src/lib/fm/libfmd_snmp/common/problem.c b/usr/src/lib/fm/libfmd_snmp/common/problem.c
index dc1fc7a158..21835ec8a0 100644
--- a/usr/src/lib/fm/libfmd_snmp/common/problem.c
+++ b/usr/src/lib/fm/libfmd_snmp/common/problem.c
@@ -274,9 +274,8 @@ problem_update(sunFmProblem_update_ctx_t *update_ctx)
return (SNMP_ERR_NOERROR);
}
-/*ARGSUSED*/
-static void
-update_thread(void *arg)
+__NORETURN static void *
+update_thread(void *arg __unused)
{
/*
* The current problem_update implementation offers minimal savings
@@ -348,8 +347,7 @@ sunFmProblemTable_init(void)
return (MIB_REGISTRATION_FAILED);
}
- if ((err = pthread_create(NULL, NULL, (void *(*)(void *))update_thread,
- NULL)) != 0) {
+ if ((err = pthread_create(NULL, NULL, update_thread, NULL)) != 0) {
(void) snmp_log(LOG_ERR, MODNAME_STR ": error creating update "
"thread: %s\n", strerror(err));
return (MIB_REGISTRATION_FAILED);