From: Sergey Poznyakoff Date: Sun, 26 Aug 2007 09:01:08 +0000 (+0000) Subject: (diff_dumpdir): Rename stat->stat_data to avoid shadowing the syscall. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d769b724f437711d08f00682a0af3a63937ad407;p=chaz%2Ftar (diff_dumpdir): Rename stat->stat_data to avoid shadowing the syscall. --- diff --git a/src/compare.c b/src/compare.c index f92d769..d0cf5f7 100644 --- a/src/compare.c +++ b/src/compare.c @@ -368,9 +368,9 @@ diff_dumpdir (void) { char *dumpdir_buffer; dev_t dev = 0; - struct stat stat; + struct stat stat_data; - if (deref_stat (true, current_stat_info.file_name, &stat)) + if (deref_stat (true, current_stat_info.file_name, &stat_data)) { if (errno == ENOENT) stat_warn (current_stat_info.file_name); @@ -378,7 +378,7 @@ diff_dumpdir (void) stat_error (current_stat_info.file_name); } else - dev = stat.st_dev; + dev = stat_data.st_dev; dumpdir_buffer = get_directory_contents (current_stat_info.file_name, dev);