From 527d7780cbd6ff13c2a14b1edef3d390c53b6daa Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Wed, 31 Mar 2004 15:01:05 +0000 Subject: [PATCH] Make it compile... (Logical change 1.353) --- ntfsprogs/ntfsdump_logfile.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ntfsprogs/ntfsdump_logfile.c b/ntfsprogs/ntfsdump_logfile.c index fc7a34f0..79c0bafd 100644 --- a/ntfsprogs/ntfsdump_logfile.c +++ b/ntfsprogs/ntfsdump_logfile.c @@ -31,8 +31,9 @@ #include #include #include -#include #include +#include +#include #include "types.h" #include "endians.h" @@ -88,7 +89,7 @@ void device_err_exit(char *dev_name, ntfs_volume *vol, ntfs_inode *ni, /** * usage - */ -void usage(void) __attribute__ ((noreturn)); +void usage(const char *exec_name) __attribute__ ((noreturn)); void usage(const char *exec_name) { fprintf(stderr, "%s v%s - Interpret and display information about the " @@ -229,7 +230,7 @@ int main(int argc, char **argv) err = errno; if (close(fd)) fprintf(stderr, "Warning: Failed to close file %s: " - "%s\n", strerror(errno)); + "%s\n", argv[2], strerror(errno)); if (br != buf_size) { free(buf); err_exit("Failed to read data from %s: %s", argv[2],