aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/archive.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:36:25 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:36:25 +0000
commit03f4fafc27bd9f8def1df6a229a17fc2c3f0e0a0 (patch)
treeac78cb209f336e5c3cd1d145e2ed1444ba2e31c2 /src/libutil/archive.hh
parentdf707d05d1671677efe5935356959722c4cc3a02 (diff)
parent088dcea0e80bf2861fd9d6b808e76a1669b7122a (diff)
Merge remote-tracking branch 'upstream/master' into misc-ca
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r--src/libutil/archive.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh
index 57780d16a..5665732d2 100644
--- a/src/libutil/archive.hh
+++ b/src/libutil/archive.hh
@@ -57,8 +57,8 @@ struct ParseSink
virtual void createRegularFile(const Path & path) { };
virtual void isExecutable() { };
- virtual void preallocateContents(unsigned long long size) { };
- virtual void receiveContents(unsigned char * data, unsigned int len) { };
+ virtual void preallocateContents(uint64_t size) { };
+ virtual void receiveContents(unsigned char * data, size_t len) { };
virtual void createSymlink(const Path & path, const string & target) { };
};
@@ -77,7 +77,7 @@ struct RetrieveRegularNARSink : ParseSink
regular = false;
}
- void receiveContents(unsigned char * data, unsigned int len)
+ void receiveContents(unsigned char * data, size_t len)
{
sink(data, len);
}