summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-04-14 15:02:51 +0000
committerderaadt <deraadt@openbsd.org>2017-04-14 15:02:51 +0000
commit48c81f6eeada4be2d1e3ee9fd45c9c67a847b567 (patch)
tree1d2f3204f532021983442ed21661c1e709c6901e /lib/libc
parentDefine __dead and __pure even if __STRICT_ANSI__ for compilers that (diff)
downloadwireguard-openbsd-48c81f6eeada4be2d1e3ee9fd45c9c67a847b567.tar.xz
wireguard-openbsd-48c81f6eeada4be2d1e3ee9fd45c9c67a847b567.zip
whitespace
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/ttyname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/ttyname.c b/lib/libc/gen/ttyname.c
index c6195de2d64..0ceb9752049 100644
--- a/lib/libc/gen/ttyname.c
+++ b/lib/libc/gen/ttyname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttyname.c,v 1.19 2016/11/09 19:09:52 millert Exp $ */
+/* $OpenBSD: ttyname.c,v 1.20 2017/04/14 15:02:51 deraadt Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -123,7 +123,7 @@ oldttyname(struct stat *sb, char *buf, size_t len)
while ((dirp = readdir(dp))) {
if (dirp->d_type != DT_CHR && dirp->d_type != DT_UNKNOWN)
continue;
- if (fstatat(dirfd(dp), dirp->d_name, &dsb, AT_SYMLINK_NOFOLLOW)
+ if (fstatat(dirfd(dp), dirp->d_name, &dsb, AT_SYMLINK_NOFOLLOW)
|| !S_ISCHR(dsb.st_mode) || sb->st_rdev != dsb.st_rdev)
continue;
if (dirp->d_namlen > len - sizeof(_PATH_DEV)) {