Xinqi Bao's Git

simplified gid()
authorAli H. Fardan <[email protected]>
Thu, 1 Sep 2016 18:51:32 +0000 (21:51 +0300)
committerAli H. Fardan <[email protected]>
Thu, 1 Sep 2016 18:51:32 +0000 (21:51 +0300)
slstatus.c

index 7337e4a..a3b6b6a 100644 (file)
@@ -262,8 +262,7 @@ entropy(void)
 static char *
 gid(void)
 {
-       gid_t gid = getgid();
-       return smprintf("%d", gid);
+       return smprintf("%d", getgid());
 }
 
 static char *