summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-04-14 11:21:09 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-04-14 11:21:09 +0000
commit6c5988cc430795e93ced23edcdce5879c033541c (patch)
treee2ef7037931654a9b2bc16946bf945fb0c11981b /lib/libc/gen
parent268d7a3e60544ccd7b09b987dad289b675aa47fa (diff)
Zap trailing whitespace.
OK tb
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/scandir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/scandir.c b/lib/libc/gen/scandir.c
index 870dc0a39ad..f767ca503fa 100644
--- a/lib/libc/gen/scandir.c
+++ b/lib/libc/gen/scandir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scandir.c,v 1.21 2019/06/28 13:32:41 deraadt Exp $ */
+/* $OpenBSD: scandir.c,v 1.22 2024/04/14 11:21:08 florian Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -75,7 +75,7 @@ scandir(const char *dirname, struct dirent ***namelist,
/*
* estimate the array size by taking the size of the directory file
- * and dividing it by a multiple of the minimum size entry.
+ * and dividing it by a multiple of the minimum size entry.
*/
arraysz = MAXIMUM(stb.st_size / 24, 16);
if (arraysz > SIZE_MAX / sizeof(struct dirent *)) {
@@ -96,7 +96,7 @@ scandir(const char *dirname, struct dirent ***namelist,
*/
if (nitems >= arraysz) {
struct dirent **nnames;
-
+
if (fstat(dirp->dd_fd, &stb) == -1)
goto fail;