X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=cadb1f473e4b4383eedbd58060648f9cf7b560d3;hb=fa29d7a9a3d8a72b79924d28813eef7e55a25bc9;hp=cf403133296bd034497f795471f55c7932c256b8;hpb=4d5e8d3e948a83e3960d63ff2d537a62bee4fa4a;p=nfs-utils.git diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index cf40313..cadb1f4 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -304,9 +308,6 @@ static struct mount_options *rewrite_mount_options(char *str) if (option) mnt_server.pmap.pm_port = atoi(option); mnt_server.pmap.pm_prog = MOUNTPROG; - option = po_get(options, "mountprog"); - if (option) - mnt_server.pmap.pm_prog = atoi(option); option = po_get(options, "mountvers"); if (option) mnt_server.pmap.pm_vers = atoi(option); @@ -317,9 +318,6 @@ static struct mount_options *rewrite_mount_options(char *str) po_remove_all(options, "port"); } nfs_server.pmap.pm_prog = NFS_PROGRAM; - option = po_get(options, "nfsprog"); - if (option) - nfs_server.pmap.pm_prog = atoi(option); option = po_get(options, "nfsvers"); if (option) {