]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
text-based mount.nfs: rename fix_up_mounthost_opt()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 8 Oct 2007 15:53:41 +0000 (11:53 -0400)
committerNeil Brown <neilb@suse.de>
Tue, 9 Oct 2007 01:18:03 +0000 (11:18 +1000)
Spell out _option, just like other mount-option specific functions.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/stropts.c

index b31b3a28e20cc7a0ed9a7c2422f7d33ce19364aa..3d83f9e5743bb9dd2c974ecf1242d7477677bd9f 100644 (file)
@@ -191,10 +191,10 @@ static int append_clientaddr_option(struct sockaddr_in *saddr,
 }
 
 /*
- * Called to resolve the 'mounthost=' hostname and append a new
- * option using an IPv4 address.
+ * Resolve the 'mounthost=' hostname and append a new option using
+ * the resulting IPv4 address.
  */
-static int fix_up_mounthost_opt(struct mount_options *options)
+static int fix_mounthost_option(struct mount_options *options)
 {
        struct sockaddr_in maddr;
        char *mounthost, new_option[32];
@@ -251,7 +251,7 @@ int nfsmount_s(const char *spec, const char *node, int flags,
        if (!append_addr_option(&saddr, options))
                goto out;
 
-       if (!fix_up_mounthost_opt(options))
+       if (!fix_mounthost_option(options))
                goto out;
 
        if (po_join(options, extra_opts) == PO_FAILED) {