Index | Thread | Search

From:
Florian Obser <florian@openbsd.org>
Subject:
scandir.c whitespace fixes
To:
tech <tech@openbsd.org>
Date:
Sun, 14 Apr 2024 13:13:07 +0200

Download raw body.

Thread
this was hurting my eyes. OK?

diff --git scandir.c scandir.c
index 870dc0a39ad..9782a3d9117 100644
--- scandir.c
+++ scandir.c
@@ -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;
 

-- 
In my defence, I have been left unsupervised.