aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/getexecname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libspl/getexecname.c')
-rw-r--r--lib/libspl/getexecname.c4
1 files changed, 2 insertions, 2 deletions
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);
}