diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-05-19 01:36:17 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-05-19 01:36:17 +0530 |
commit | f19bf5bbad5d25124e81163cd38cdf30aa6b3a8c (patch) | |
tree | ac54f48a5d4600286cc038e1e91c380c8585fb57 | |
parent | 8a1786c49f630acb66a2aca88e4ce96ae75edceb (diff) | |
download | nnn-f19bf5bbad5d25124e81163cd38cdf30aa6b3a8c.tar.gz |
Use macro instead if hardcoded value
-rw-r--r-- | nnn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |