summaryrefslogtreecommitdiff
path: root/methods/bzip2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/bzip2.cc')
-rw-r--r--methods/bzip2.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/methods/bzip2.cc b/methods/bzip2.cc
index 19e49828e..241f21c66 100644
--- a/methods/bzip2.cc
+++ b/methods/bzip2.cc
@@ -102,9 +102,8 @@ bool Bzip2Method::Fetch(FetchItem *Itm)
while (1)
{
unsigned char Buffer[4*1024];
- unsigned long Count;
- Count = read(GzOut[0],Buffer,sizeof(Buffer));
+ ssize_t Count = read(GzOut[0],Buffer,sizeof(Buffer));
if (Count < 0 && errno == EINTR)
continue;