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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libspl/getexecname.c b/lib/libspl/getexecname.c
index c564eed05..478351ce7 100644
--- a/lib/libspl/getexecname.c
+++ b/lib/libspl/getexecname.c
@@ -41,7 +41,8 @@ getexecname(void)
pthread_mutex_lock(&mtx);
if (strlen(execname) == 0) {
- rc = readlink("/proc/self/exe", execname, sizeof(execname) - 1);
+ rc = readlink("/proc/self/exe",
+ execname, sizeof (execname) - 1);
if (rc == -1) {
execname[0] = '\0';
} else {
@@ -53,5 +54,5 @@ getexecname(void)
}
pthread_mutex_unlock(&mtx);
- return ptr;
+ return (ptr);
}