mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
Remove unused functions
This commit is contained in:
committed by
Michał Kowalczyk
parent
52b35034ce
commit
05c5ac5149
@@ -724,18 +724,6 @@ static inline struct link_map* __search_map_by_handle(struct shim_handle* file)
|
||||
return l;
|
||||
}
|
||||
|
||||
static inline struct link_map* __search_map_by_addr(void* addr) {
|
||||
struct link_map* l = loaded_libraries;
|
||||
|
||||
while (l) {
|
||||
if ((void*)l->l_map_start == addr)
|
||||
break;
|
||||
l = l->l_next;
|
||||
}
|
||||
|
||||
return l;
|
||||
}
|
||||
|
||||
static int __remove_elf_object(struct link_map* l) {
|
||||
if (l->l_prev)
|
||||
l->l_prev->l_next = l->l_next;
|
||||
|
||||
@@ -389,21 +389,6 @@ static void inet_save_addr(int domain, struct addr_inet* addr, const struct sock
|
||||
}
|
||||
}
|
||||
|
||||
static inline bool inet_comp_addr(int domain, const struct addr_inet* addr,
|
||||
const struct sockaddr* saddr) {
|
||||
if (domain == AF_INET) {
|
||||
const struct sockaddr_in* in = (const struct sockaddr_in*)saddr;
|
||||
return addr->port == __ntohs(in->sin_port) &&
|
||||
!memcmp(&addr->addr.v4, &in->sin_addr, sizeof(struct in_addr));
|
||||
}
|
||||
if (domain == AF_INET6) {
|
||||
const struct sockaddr_in6* in6 = (const struct sockaddr_in6*)saddr;
|
||||
return addr->port == __ntohs(in6->sin6_port) &&
|
||||
!memcmp(&addr->addr.v6, &in6->sin6_addr, sizeof(struct in6_addr));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static int create_socket_uri(struct shim_handle* hdl) {
|
||||
struct shim_sock_handle* sock = &hdl->info.sock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user