Mercurial > illumos > illumos-gate
changeset 13798:2170bf12ab3f
3109 libshare_nfs: findopt() should return index
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
author | Vitaliy Gusev <gusev.vitaliy@nexenta.com> |
---|---|
date | Tue, 28 Aug 2012 20:28:15 -0500 |
parents | 271108bf13d7 |
children | 0b5d8823b20a |
files | usr/src/lib/libshare/nfs/libshare_nfs.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/libshare/nfs/libshare_nfs.c Tue Aug 28 20:12:52 2012 -0500 +++ b/usr/src/lib/libshare/nfs/libshare_nfs.c Tue Aug 28 20:28:15 2012 -0500 @@ -22,6 +22,9 @@ /* * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. */ +/* + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. + */ /* * NFS specific functions @@ -252,7 +255,7 @@ if (name != NULL) { for (i = 0; optdefs[i].tag != NULL; i++) { if (strcmp(optdefs[i].tag, name) == 0) - return (i); + return (optdefs[i].index); } if (findcharset(name)) return (OPT_CHARSET_MAP);