From b28bc23d23edd0677b7b16c6cb20be53a621ecb0 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 15 Nov 2008 07:59:39 +0000 Subject: [PATCH] Oops, found a rogue "struct stat64" which hadn't been parametrised. git-svn-id: svn://svn.tartarus.org/sgt/agedu@8296 cda61777-01e9-0310-a592-d414129be87e --- TODO | 5 +++++ du.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index c11cd11..f8c723d 100644 --- a/TODO +++ b/TODO @@ -54,6 +54,11 @@ TODO list for agedu Unclear what the right UI would be on Windows, too; command-line exactly as now might be considered just a _little_ unfriendly. Or perhaps not. + * Disk scan procedure: the FindFirstFile / FindNextFile + functions to scan a directory automatically return the file + times along with the filenames, so there's no need to stat + them later. Would want to fiddle the shape of the + abstraction layer to reflect this. + Alternatively, a much easier approach would be to write a Windows version of just the --scan-dump mode, which does a filesystem scan via the Windows API and generates a valid diff --git a/du.h b/du.h index 670c572..f3e36ea 100644 --- a/du.h +++ b/du.h @@ -15,7 +15,7 @@ */ typedef int (*gotdata_fn_t)(void *ctx, const char *pathname, - const struct stat64 *st); + const STRUCT_STAT *st); /* * Function called to report an error during scanning. The ctx is -- 2.11.0