leaving one max_component len constant

both NFS41_MAX_COMPONENT_SIZE and NFS41_MAX_COMPONENT_LEN
represented the same value.
This commit is contained in:
Olga Kornievskaia 2012-04-30 11:57:34 -04:00
parent 11a13bef0f
commit 9dd4708aed
3 changed files with 3 additions and 5 deletions

View file

@ -360,7 +360,7 @@ static void copy_attrs(
/* name cache */
RB_HEAD(name_tree, name_cache_entry);
struct name_cache_entry {
char component[NFS41_MAX_COMPONENT_SIZE];
char component[NFS41_MAX_COMPONENT_LEN];
nfs41_fh fh;
RB_ENTRY(name_cache_entry) rbnode;
struct name_tree rbchildren;
@ -608,7 +608,7 @@ static struct name_cache_entry* name_cache_search(
dprintf(NCLVL2, "--> name_cache_search('%.*s' under '%s')\n",
component->len, component->name, parent->component);
StringCchCopyNA(tmp.component, NFS41_MAX_COMPONENT_SIZE,
StringCchCopyNA(tmp.component, NFS41_MAX_COMPONENT_LEN,
component->name, component->len);
tmp.component_len = component->len;