Merge pull request #31004 from AdrianVovk/misc-cleanups

Misc cleanups
This commit is contained in:
Mike Yuan
2024-01-20 16:43:20 +08:00
committed by GitHub
10 changed files with 52 additions and 65 deletions
-5
View File
@@ -33,11 +33,6 @@ static TunTap* TUNTAP(NetDev *netdev) {
}
}
static void *close_fd_ptr(void *p) {
safe_close(PTR_TO_FD(p));
return NULL;
}
DEFINE_PRIVATE_HASH_OPS_FULL(named_fd_hash_ops, char, string_hash_func, string_compare_func, free, void, close_fd_ptr);
int manager_add_tuntap_fd(Manager *m, int fd, const char *name) {