diff --git a/lib/libspl/getexecname.c b/lib/libspl/getexecname.c index 478351ce7..c21a110ad 100644 --- a/lib/libspl/getexecname.c +++ b/lib/libspl/getexecname.c @@ -38,7 +38,7 @@ getexecname(void) char *ptr = NULL; ssize_t rc; - pthread_mutex_lock(&mtx); + (void) pthread_mutex_lock(&mtx); if (strlen(execname) == 0) { rc = readlink("/proc/self/exe", @@ -53,6 +53,6 @@ getexecname(void) ptr = execname; } - pthread_mutex_unlock(&mtx); + (void) pthread_mutex_unlock(&mtx); return (ptr); }