aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/automount.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2015-03-09 15:31:33 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2015-03-09 15:31:33 +0000
commit6d8e60c3423a9e00d1ef90ffd05a9be0a7b15d16 (patch)
treedd7f3ccf56473236e00e338282b83e480da7902f /usr.sbin/autofs/automount.c
parentef4b8dfad7fb470b0c86d174e8197b15c198dacb (diff)
downloadsrc-6d8e60c3423a9e00d1ef90ffd05a9be0a7b15d16.tar.gz
src-6d8e60c3423a9e00d1ef90ffd05a9be0a7b15d16.zip
Make things more readable; no functional changes.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=279813
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 3c59704b5c58..0c42ffd664b7 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);