aboutsummaryrefslogtreecommitdiff
path: root/slstatus/components/user.c
diff options
context:
space:
mode:
authorMarvin Borner2020-03-16 23:33:42 +0100
committerMarvin Borner2020-03-16 23:33:42 +0100
commit0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch)
tree719da1c7fe5dabb872fe9ff1582c39b55ccd488e /slstatus/components/user.c
parente5d38956336ab1be954bdbd12808c5f98f8bd925 (diff)
Well I'm using Arch again
Diffstat (limited to 'slstatus/components/user.c')
-rw-r--r--slstatus/components/user.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/slstatus/components/user.c b/slstatus/components/user.c
deleted file mode 100644
index 71a0c9d..0000000
--- a/slstatus/components/user.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include <pwd.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <unistd.h>
-
-#include "../util.h"
-
-const char *
-gid(void)
-{
- return bprintf("%d", getgid());
-}
-
-const char *
-username(void)
-{
- struct passwd *pw;
-
- if (!(pw = getpwuid(geteuid()))) {
- warn("getpwuid '%d':", geteuid());
- return NULL;
- }
-
- return bprintf("%s", pw->pw_name);
-}
-
-const char *
-uid(void)
-{
- return bprintf("%d", geteuid());
-}