Skip to content

Commit 6d491ec

Browse files
authored
Merge branch 'rr-debugger:master' into fix_dotnet_doublemapping
2 parents 2517dff + c270cc0 commit 6d491ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ElfReader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ ScopedFd ElfFileReader::open_debug_file(const std::string& elf_file_name) {
630630
} else if (ret == 0) {
631631
break;
632632
} else {
633-
crc = crc32(crc, buf, ret);
633+
crc = update_crc32(crc, buf, ret);
634634
}
635635
}
636636

src/util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ int choose_cpu(BindCPU bind_cpu, ScopedFd &cpu_lock_fd_out) {
21592159
return cpus[random() % cpus.size()];
21602160
}
21612161

2162-
uint32_t crc32(uint32_t crc, unsigned char* buf, size_t len) {
2162+
uint32_t update_crc32(uint32_t crc, unsigned char* buf, size_t len) {
21632163
static const uint32_t crc32_table[256] = {
21642164
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
21652165
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ int choose_cpu(BindCPU bind_cpu, ScopedFd& cpu_lock_fd_out);
527527
/* Updates an IEEE 802.3 CRC-32 least significant bit first from each byte in
528528
* |buf|. Pre- and post-conditioning is not performed in this function and so
529529
* should be performed by the caller, as required. */
530-
uint32_t crc32(uint32_t crc, unsigned char* buf, size_t len);
530+
uint32_t update_crc32(uint32_t crc, unsigned char* buf, size_t len);
531531

532532
/* Like write(2) but any error or "device full" is treated as fatal. We also
533533
* ensure that all bytes are written by looping on short writes. */

0 commit comments

Comments
 (0)