[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] dd: remove unnecessary #if HAVE_FTRUNCATE
From: |
Jim Meyering |
Subject: |
[PATCH] dd: remove unnecessary #if HAVE_FTRUNCATE |
Date: |
Tue, 04 Aug 2009 20:14:12 +0200 |
FYI, I've pushed this:
>From 365fb90eaae52c92d6af8e87769e72b872492f4a Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 4 Aug 2009 20:05:45 +0200
Subject: [PATCH] dd: remove unnecessary #if HAVE_FTRUNCATE
* src/dd.c (main): Remove unnecessary cpp directives.
Gnulib guarantees that ftruncate is usable.
---
src/dd.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/dd.c b/src/dd.c
index 0028b53..9a9d22a 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1869,7 +1869,6 @@ main (int argc, char **argv)
< 0))
error (EXIT_FAILURE, errno, _("opening %s"), quote (output_file));
-#if HAVE_FTRUNCATE
if (seek_records != 0 && !(conversions_mask & C_NOTRUNC))
{
uintmax_t size = seek_records * output_blocksize;
@@ -1902,7 +1901,6 @@ main (int argc, char **argv)
size, quote (output_file));
}
}
-#endif
}
install_signal_handlers ();
--
1.6.4.70.g9c084
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] dd: remove unnecessary #if HAVE_FTRUNCATE,
Jim Meyering <=