mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +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);
|
||||
if (!pwd)
|
||||
return utils[7];
|
||||
return utils[UNKNOWN];
|
||||
|
||||
return pwd->pw_name;
|
||||
}
|
||||
|
@ -1746,7 +1746,7 @@ xgetgrgid(gid_t gid)
|
|||
{
|
||||
struct group *grp = getgrgid(gid);
|
||||
if (!grp)
|
||||
return utils[7];
|
||||
return utils[UNKNOWN];
|
||||
|
||||
return grp->gr_name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue