summary refs log tree commit diff
path: root/src/main.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-21 22:26:28 -0500
committerJune McEnroe <june@causal.agency>2022-01-21 22:26:28 -0500
commit22fb2a07db173532462d90ad875a06254e932773 (patch)
treef1452b68dad10fa2a6d43223a992eefa93cedf75 /src/main.c
parentdash: Just zero mailsize on changemail (diff)
downloaddash-22fb2a07db173532462d90ad875a06254e932773.tar.gz
dash-22fb2a07db173532462d90ad875a06254e932773.zip
dash: Stop this stat64 nonsense
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 7a28534..36431fc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -298,7 +298,7 @@ find_dot_file(char *basename)
 {
 	char *fullname;
 	const char *path = pathval();
-	struct stat64 statb;
+	struct stat statb;
 	int len;
 
 	/* don't try this for absolute or relative paths */
@@ -308,7 +308,7 @@ find_dot_file(char *basename)
 	while ((len = padvance(&path, basename)) >= 0) {
 		fullname = stackblock();
 		if ((!pathopt || *pathopt == 'f') &&
-		    !stat64(fullname, &statb) && S_ISREG(statb.st_mode)) {
+		    !stat(fullname, &statb) && S_ISREG(statb.st_mode)) {
 			/* This will be freed by the caller. */
 			return stalloc(len);
 		}