projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ceafc
)
username(): get rid of unneeded uid variable
author
Aaron Marcher
<info@nulltime.net>
Thu, 20 Apr 2017 20:18:24 +0000
(22:18 +0200)
committer
Aaron Marcher
<info@nulltime.net>
Thu, 20 Apr 2017 20:18:24 +0000
(22:18 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index ada64418899eb040f70a4f4433a9936c4166aac8..5500a6209958ee5712f6085aa646c9c81c0ff921 100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-643,8
+643,7
@@
uptime(void)
static char *
username(void)
{
- uid_t uid = geteuid();
- struct passwd *pw = getpwuid(uid);
+ struct passwd *pw = getpwuid(geteuid());
if (pw == NULL) {
warn("Failed to get username");