mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Use macro instead if hardcoded value
This commit is contained in:
parent
8a1786c49f
commit
f19bf5bbad
4
nnn.c
4
nnn.c
|
@ -1736,7 +1736,7 @@ xgetpwuid(uid_t uid)
|
||||||
{
|
{
|
||||||
struct passwd *pwd = getpwuid(uid);
|
struct passwd *pwd = getpwuid(uid);
|
||||||
if (!pwd)
|
if (!pwd)
|
||||||
return utils[7];
|
return utils[UNKNOWN];
|
||||||
|
|
||||||
return pwd->pw_name;
|
return pwd->pw_name;
|
||||||
}
|
}
|
||||||
|
@ -1746,7 +1746,7 @@ xgetgrgid(gid_t gid)
|
||||||
{
|
{
|
||||||
struct group *grp = getgrgid(gid);
|
struct group *grp = getgrgid(gid);
|
||||||
if (!grp)
|
if (!grp)
|
||||||
return utils[7];
|
return utils[UNKNOWN];
|
||||||
|
|
||||||
return grp->gr_name;
|
return grp->gr_name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue