summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-09-01 21:51:32 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-09-01 21:51:32 +0300
commitd3a212da7e09f11753aafd76f16dccb1ade822e1 (patch)
tree31668ba3da197ccbe21530bd45df52d95f9ffab9
parent2f8335abf0d6347100cf63d82e8151ad0ff97ab0 (diff)
simplified gid()
-rw-r--r--slstatus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/slstatus.c b/slstatus.c
index 7337e4a..a3b6b6a 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -262,8 +262,7 @@ entropy(void)
static char *
gid(void)
{
- gid_t gid = getgid();
- return smprintf("%d", gid);
+ return smprintf("%d", getgid());
}
static char *