Issue #24300: Minor refactoring.
This commit is contained in:
parent
f98c35a816
commit
9f4b8605e6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue