Date: Wed, 18 May 2016 17:40:53 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300160 - head/sys/fs/nfsclient Message-ID: <201605181740.u4IHerhG065615@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Wed May 18 17:40:53 2016 New Revision: 300160 URL: https://svnweb.freebsd.org/changeset/base/300160 Log: Comment fix: the getsockaddr() is actually meant here. Reviewed by: rmacklem Modified: head/sys/fs/nfsclient/nfs_clvfsops.c Modified: head/sys/fs/nfsclient/nfs_clvfsops.c ============================================================================== --- head/sys/fs/nfsclient/nfs_clvfsops.c Wed May 18 17:08:29 2016 (r300159) +++ head/sys/fs/nfsclient/nfs_clvfsops.c Wed May 18 17:40:53 2016 (r300160) @@ -841,7 +841,7 @@ nfs_mount_parse_from(struct vfsoptlist * * mount system call * It seems a bit dumb to copyinstr() the host and path here and then * bcopy() them in mountnfs(), but I wanted to detect errors before - * doing the sockargs() call because sockargs() allocates an mbuf and + * doing the getsockaddr() call because getsockaddr() allocates an mbuf and * an error after that means that I have to release the mbuf. */ /* ARGSUSED */ @@ -1228,7 +1228,7 @@ nfs_mount(struct mount *mp) goto out; bzero(&hst[hstlen], MNAMELEN - hstlen); args.hostname = hst; - /* sockargs() call must be after above copyin() calls */ + /* getsockaddr() call must be after above copyin() calls */ error = getsockaddr(&nam, (caddr_t)args.addr, args.addrlen); if (error != 0) @@ -1332,7 +1332,7 @@ out: * mount system call * It seems a bit dumb to copyinstr() the host and path here and then * bcopy() them in mountnfs(), but I wanted to detect errors before - * doing the sockargs() call because sockargs() allocates an mbuf and + * doing the getsockaddr() call because getsockaddr() allocates an mbuf and * an error after that means that I have to release the mbuf. */ /* ARGSUSED */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605181740.u4IHerhG065615>