summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs/automount.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-05-21 13:25:28 +0000
committertrasz <trasz@FreeBSD.org>2015-05-21 13:25:28 +0000
commit938b0cc7dd64a0e7b911f6a093f33e93e1f6c222 (patch)
tree399556006e5c32c6167635ea9bac1059ea81f96e /usr.sbin/autofs/automount.c
parentc0941dd28e1fec3ca4e1c782afa4ce3817817a40 (diff)
downloadFreeBSD-src-938b0cc7dd64a0e7b911f6a093f33e93e1f6c222.zip
FreeBSD-src-938b0cc7dd64a0e7b911f6a093f33e93e1f6c222.tar.gz
MFC r279813:
Make things more readable; no functional changes. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/autofs/automount.c')
-rw-r--r--usr.sbin/autofs/automount.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/autofs/automount.c b/usr.sbin/autofs/automount.c
index 3c59704..0c42ffd 100644
--- a/usr.sbin/autofs/automount.c
+++ b/usr.sbin/autofs/automount.c
@@ -349,8 +349,7 @@ main_automount(int argc, char **argv)
if (options == NULL) {
options = checked_strdup(optarg);
} else {
- options =
- separated_concat(options, optarg, ',');
+ options = concat(options, ',', optarg);
}
break;
case 'u':
@@ -388,8 +387,7 @@ main_automount(int argc, char **argv)
if (show_maps) {
if (options != NULL) {
- root->n_options = separated_concat(options,
- root->n_options, ',');
+ root->n_options = concat(options, ',', root->n_options);
}
if (show_maps > 1) {
node_expand_indirect_maps(root);
OpenPOWER on IntegriCloud