mirror of https://github.com/aria2/aria2
pull/1/head
parent
5067ad8d48
commit
ea4be7769b
|
@ -143,7 +143,7 @@ int MultiDiskWriter::readData(char* data, int len, long long int offset) {
|
|||
}
|
||||
|
||||
#ifdef ENABLE_SHA1DIGEST
|
||||
void MultiDiskWriter::hashUpdate(const DiskWriterEntry* entry, long long int offset, long long int length) const {
|
||||
void MultiDiskWriter::hashUpdate(DiskWriterEntry* entry, long long int offset, long long int length) {
|
||||
int BUFSIZE = 16*1024;
|
||||
char buf[BUFSIZE];
|
||||
for(int i = 0; i < length/BUFSIZE; i++) {
|
||||
|
|
|
@ -50,7 +50,7 @@ private:
|
|||
void clearEntries();
|
||||
#ifdef ENABLE_SHA1DIGEST
|
||||
MessageDigestContext ctx;
|
||||
void hashUpdate(const DiskWriterEntry* entry, long long int offset, long long int length) const;
|
||||
void hashUpdate(DiskWriterEntry* entry, long long int offset, long long int length);
|
||||
#endif // ENABLE_SHA1DIGEST
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue