refactoring server and add myclib

This commit is contained in:
2025-08-02 13:35:56 +02:00
parent fa964b2620
commit 2918aeadcb
14 changed files with 505 additions and 292 deletions

View File

@@ -97,7 +97,8 @@ bool my_int_equal_fn(const void *a, const void *b) {
return false;
}
void my_int_free_fn(void *value) {
int fd = *(int *)value;
void my_int_free_key_fn(void *key) {
int fd = *(int *)key;
close(fd);
free(key);
}