X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsmount.c;h=a56bfe1ff2e66e4b280b258e830eaf2ca443c757;hp=49d6f3c875f9ca2bb0b798880514600a8c997cd5;hb=53a9b4a2ea971d5718ccfcc2f2825ff9af81cd23;hpb=a3c8371b4f4cf9f0ff93ca040cac13dc4806ded9 diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 49d6f3c..a56bfe1 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -56,7 +56,6 @@ #include #include -#include "conn.h" #include "xcommon.h" #include "mount.h" #include "nfs_mount.h" @@ -191,7 +190,6 @@ parse_options(char *old_opts, struct nfs_mount_data *data, if ((opteq = strchr(opt, '=')) && isdigit(opteq[1])) { int val = atoi(opteq + 1); *opteq = '\0'; -/* printf("opt=%s\n", opt); */ if (!strcmp(opt, "rsize")) data->rsize = val; else if (!strcmp(opt, "wsize")) @@ -433,7 +431,7 @@ parse_options(char *old_opts, struct nfs_mount_data *data, val ? "" : "no", opt); goto out_bad; } - sprintf(cbuf, val ? "%s,":"no%s,", opt); + sprintf(cbuf, val ? "%s," : "no%s,", opt); } len += strlen(cbuf); if (len >= opt_size) {