diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-07-19 20:41:03 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-07-19 21:41:03 +0100 |
commit | 932c738d209e6530399216ec4ccd8add51f68f46 (patch) | |
tree | da69cb9f6c3a9baa2279b699737512c66d6f27d1 /fastjar | |
parent | 4f1605d2ca37c757a35b3157a55f7b9c5615ae31 (diff) | |
download | gcc-932c738d209e6530399216ec4ccd8add51f68f46.zip gcc-932c738d209e6530399216ec4ccd8add51f68f46.tar.gz gcc-932c738d209e6530399216ec4ccd8add51f68f46.tar.bz2 |
jartool.c (main): Ensure that only one of ftruncate and _chsize is used.
2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
* jartool.c (main): Ensure that only one of ftruncate and _chsize
is used.
From-SVN: r84931
Diffstat (limited to 'fastjar')
-rw-r--r-- | fastjar/ChangeLog | 5 | ||||
-rw-r--r-- | fastjar/jartool.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog index 2b54f3b..d3ee407a 100644 --- a/fastjar/ChangeLog +++ b/fastjar/ChangeLog @@ -1,3 +1,8 @@ +2004-07-19 Bryce McKinlay <mckinlay@redhat.com> + + * jartool.c (main): Ensure that only one of ftruncate and _chsize + is used. + 2004-07-11 Bryce McKinlay <mckinlay@redhat.com> PR 16472 diff --git a/fastjar/jartool.c b/fastjar/jartool.c index d57794d..f43af14 100644 --- a/fastjar/jartool.c +++ b/fastjar/jartool.c @@ -580,8 +580,7 @@ int main(int argc, char **argv){ if (action == ACTION_UPDATE) #if HAVE_FTRUNCATE ftruncate (jarfd, lseek (jarfd, 0, SEEK_CUR)); -#endif -#if HAVE__CHSIZE +#else _chsize (jarfd, lseek (jarfd, 0, SEEK_CUR)); #endif |