diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-30 13:00:30 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-30 13:00:30 +0200 |
commit | ebee2b7852a8c0441e9470a0df8ec3c71d322109 (patch) | |
tree | 3e173a200770444146b049c706f3369e46ec2c15 /src/libutil/archive.hh | |
parent | 3f3740d676b605c4dae67b6e1b6a873b4a9beadb (diff) |
receiveContents(): unsigned int -> size_t
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r-- | src/libutil/archive.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index 57780d16a..b6e1188c4 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -58,7 +58,7 @@ 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 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); } |