aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-05-19 01:36:17 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-05-19 01:36:17 +0530
commitf19bf5bbad5d25124e81163cd38cdf30aa6b3a8c (patch)
treeac54f48a5d4600286cc038e1e91c380c8585fb57
parent8a1786c49f630acb66a2aca88e4ce96ae75edceb (diff)
downloadnnn-f19bf5bbad5d25124e81163cd38cdf30aa6b3a8c.tar.gz
Use macro instead if hardcoded value
-rw-r--r--nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nnn.c b/nnn.c
index cdb4540..22aafc7 100644
--- a/nnn.c
+++ b/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;
}