Skip to content

Commit ce1f2f6

Browse files
jbachorikclaude
andcommitted
fix: split chained assignment between incompatible fn-pointer types
cached_send (send_fn) and cached_recv (recv_fn) differ in their second parameter (const void* vs void*); chaining the assignment forced an implicit recv_fn -> send_fn conversion that clang rejects. Split into two statements to match the line below. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e393733 commit ce1f2f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ddprof-lib/src/main/cpp/libraryPatcher_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ bool LibraryPatcher::patch_socket_functions() {
422422
cached_write == &NativeSocketSampler::write_hook ||
423423
cached_read == &NativeSocketSampler::read_hook) {
424424
TEST_LOG("patch_socket_functions dlsym returned hook address; refusing to self-reference");
425-
cached_send = cached_recv = nullptr;
425+
cached_send = nullptr; cached_recv = nullptr;
426426
cached_write = nullptr; cached_read = nullptr;
427427
return false;
428428
}

0 commit comments

Comments
 (0)