summaryrefslogtreecommitdiffstats
path: root/lib/libshare
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libshare')
-rw-r--r--lib/libshare/libshare.c6
-rw-r--r--lib/libshare/nfs.c3
-rw-r--r--lib/libshare/smb.c4
3 files changed, 7 insertions, 6 deletions
diff --git a/lib/libshare/libshare.c b/lib/libshare/libshare.c
index 0eb4ae00d..41fe8bb6c 100644
--- a/lib/libshare/libshare.c
+++ b/lib/libshare/libshare.c
@@ -498,7 +498,7 @@ sa_enable_share(sa_share_t share, char *protocol)
#ifdef DEBUG
fprintf(stderr, "sa_enable_share: share->sharepath=%s, protocol=%s\n",
- impl_share->sharepath, protocol);
+ impl_share->sharepath, protocol);
#endif
assert(impl_share->handle != NULL);
@@ -539,7 +539,7 @@ sa_disable_share(sa_share_t share, char *protocol)
#ifdef DEBUG
fprintf(stderr, "sa_disable_share: share->sharepath=%s, protocol=%s\n",
- impl_share->sharepath, protocol);
+ impl_share->sharepath, protocol);
#endif
ret = SA_OK;
@@ -697,7 +697,7 @@ sa_parse_legacy_options(sa_group_t group, char *options, char *proto)
#ifdef DEBUG
fprintf(stderr, "sa_parse_legacy_options: options=%s, proto=%s\n",
- options, proto);
+ options, proto);
#endif
fstype = fstypes;
diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c
index 9d548dccc..a542eff1b 100644
--- a/lib/libshare/nfs.c
+++ b/lib/libshare/nfs.c
@@ -688,7 +688,8 @@ nfs_check_exportfs(void)
}
if (pid > 0) {
- while ((rc = waitpid(pid, &status, 0)) <= 0 && errno == EINTR);
+ while ((rc = waitpid(pid, &status, 0)) <= 0 &&
+ errno == EINTR) { }
if (rc <= 0) {
(void) close(nfs_exportfs_temp_fd);
diff --git a/lib/libshare/smb.c b/lib/libshare/smb.c
index 343586508..76145bd93 100644
--- a/lib/libshare/smb.c
+++ b/lib/libshare/smb.c
@@ -154,7 +154,7 @@ smb_retrieve_shares(void)
continue; /* Incomplete share definition */
else {
shares = (smb_share_t *)
- malloc(sizeof (smb_share_t));
+ malloc(sizeof (smb_share_t));
if (shares == NULL) {
rc = SA_NO_MEMORY;
goto out;
@@ -395,7 +395,7 @@ smb_update_shareopts(sa_share_impl_t impl_share, const char *resource,
old_shareopts = FSINFO(impl_share, smb_fstype)->shareopts;
if (FSINFO(impl_share, smb_fstype)->active && old_shareopts != NULL &&
- strcmp(old_shareopts, shareopts) != 0) {
+ strcmp(old_shareopts, shareopts) != 0) {
needs_reshare = B_TRUE;
smb_disable_share(impl_share);
}