X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/709549b4bd9fee0e0054c0dfa75fff9ac18f2862..2b0f50d1aaf22e79272df8b3b0fe37f338ea1dae:/components/user.c?ds=sidebyside diff --git a/components/user.c b/components/user.c index 8ab6db9..71a0c9d 100644 --- a/components/user.c +++ b/components/user.c @@ -1,8 +1,6 @@ /* See LICENSE file for copyright and license details. */ -#include #include #include -#include #include #include @@ -20,7 +18,7 @@ username(void) struct passwd *pw; if (!(pw = getpwuid(geteuid()))) { - fprintf(stderr, "getpwuid '%d': %s\n", geteuid(), strerror(errno)); + warn("getpwuid '%d':", geteuid()); return NULL; }