summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getlogin.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-05 19:04:21 +0000
committered <ed@FreeBSD.org>2009-12-05 19:04:21 +0000
commite912442e98904e4d3d77ac344f9a353688ca3e9f (patch)
tree206383106ec7f48a62ccfce6df2fd9e58b3e1443 /lib/libc/gen/getlogin.c
parent1a90ab9d6e33a9a1598646aa6c7bce084c7217cf (diff)
downloadFreeBSD-src-e912442e98904e4d3d77ac344f9a353688ca3e9f.zip
FreeBSD-src-e912442e98904e4d3d77ac344f9a353688ca3e9f.tar.gz
Don't let the C library depend on <utmp.h>.
The maximum length of a username has nothing to do with the size of the username in the utmp files. Use MAXLOGNAME, which is defined as 17 (UT_USERSIZE + 1).
Diffstat (limited to 'lib/libc/gen/getlogin.c')
-rw-r--r--lib/libc/gen/getlogin.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/gen/getlogin.c b/lib/libc/gen/getlogin.c
index dc85d3a..569cf42 100644
--- a/lib/libc/gen/getlogin.c
+++ b/lib/libc/gen/getlogin.c
@@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <errno.h>
#include <pwd.h>
-#include <utmp.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
OpenPOWER on IntegriCloud