diff options
Diffstat (limited to 'lib/libc/gen/getlogin.c')
-rw-r--r-- | lib/libc/gen/getlogin.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/gen/getlogin.c b/lib/libc/gen/getlogin.c index 664f208..92af0d1 100644 --- a/lib/libc/gen/getlogin.c +++ b/lib/libc/gen/getlogin.c @@ -64,11 +64,7 @@ getlogin_basic(int *status) static char logname[MAXLOGNAME]; if (_logname_valid == 0) { -#ifdef __NETBSD_SYSCALLS - if (_getlogin(logname, sizeof(logname) - 1) < 0) { -#else if (_getlogin(logname, sizeof(logname)) < 0) { -#endif *status = errno; return (NULL); } |