diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-08-05 10:52:09 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-08-05 10:52:09 +0200 |
commit | 9b5d79ec68d5380f26b92cd0d9cb7af6a19ac849 (patch) | |
tree | 7d937a34f5d2e534d29c03a4d8d67c46430f74a1 /methods/http.cc | |
parent | 5aa95c863d9bc5b0de7dd1279d3ad672193cc3a6 (diff) |
fix various -Wall warnings
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 26d435dea..b3c791fa0 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -941,7 +941,8 @@ int HttpMethod::DealWithHeaders(FetchResult &Res,ServerState *Srv) if (Srv->StartPos >= 0) { Res.ResumePoint = Srv->StartPos; - ftruncate(File->Fd(),Srv->StartPos); + if (ftruncate(File->Fd(),Srv->StartPos) < 0) + _error->Errno("ftruncate", _("Failed to truncate file")); } // Set the start point |