Issue #24300: Minor refactoring.

This commit is contained in:
Raymond Hettinger 2015-07-24 00:43:44 -04:00
parent f98c35a816
commit 9f4b8605e6
1 changed files with 1 additions and 5 deletions

View File

@ -76,11 +76,7 @@ nis_mapname (char *map, int *pfix)
*pfix = 0; *pfix = 0;
for (i=0; aliases[i].alias != 0L; i++) { for (i=0; aliases[i].alias != 0L; i++) {
if (!strcmp (aliases[i].alias, map)) { if (!strcmp (aliases[i].alias, map) || !strcmp (aliases[i].map, map)) {
*pfix = aliases[i].fix;
return aliases[i].map;
}
if (!strcmp (aliases[i].map, map)) {
*pfix = aliases[i].fix; *pfix = aliases[i].fix;
return aliases[i].map; return aliases[i].map;
} }