This commit is contained in:
2025-11-08 17:15:04 +01:00
parent 7f3aa901f1
commit e5039d1774
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1341,7 +1341,7 @@ static void process_event_for_write(TinyDFS *tdfs,
tdfs->operations[opidx].result = (TinyDFS_Result) { .type=TINYDFS_RESULT_WRITE_ERROR }; tdfs->operations[opidx].result = (TinyDFS_Result) { .type=TINYDFS_RESULT_WRITE_ERROR };
return; return;
} }
#if 1 #if 0
{ {
char ip_str[INET_ADDRSTRLEN]; char ip_str[INET_ADDRSTRLEN];
inet_ntop(AF_INET, &ipv4, ip_str, sizeof(ip_str)); inet_ntop(AF_INET, &ipv4, ip_str, sizeof(ip_str));
@@ -1404,7 +1404,7 @@ static void process_event_for_write(TinyDFS *tdfs,
tdfs->operations[opidx].result = (TinyDFS_Result) { .type=TINYDFS_RESULT_WRITE_ERROR }; tdfs->operations[opidx].result = (TinyDFS_Result) { .type=TINYDFS_RESULT_WRITE_ERROR };
return; return;
} }
#if 1 #if 0
{ {
char ip_str[INET_ADDRSTRLEN]; char ip_str[INET_ADDRSTRLEN];
inet_ntop(AF_INET6, &ipv6, ip_str, sizeof(ip_str)); inet_ntop(AF_INET6, &ipv6, ip_str, sizeof(ip_str));
+1
View File
@@ -412,6 +412,7 @@ static bool find_peer_by_address(DescriptorAddress address, DescriptorHandle *ha
for (int j = 0, k = 0; k < processes[i]->num_desc; j++) { for (int j = 0, k = 0; k < processes[i]->num_desc; j++) {
assert(j < MAX_DESCRIPTORS);
Descriptor *desc = &processes[i]->desc[j]; Descriptor *desc = &processes[i]->desc[j];
if (desc->type == DESC_EMPTY) if (desc->type == DESC_EMPTY)
continue; continue;