Small hacks to get rid of compiler warnings

This commit is contained in:
XANTRONIX Development 2020-06-07 03:18:35 -04:00 committed by XANTRONIX Industrial
parent e8bf46854a
commit f67002d06d

View file

@ -104,7 +104,7 @@ static uint32_t hash_addrpair(patty_ax25_addr *local,
static patty_ax25_sock *sock_get_fd(patty_ax25 *ax25,
int fd) {
return patty_dict_get(ax25->socks,
fd,
NULL + fd,
sizeof(fd));
}
@ -131,14 +131,14 @@ static int sock_save(patty_ax25 *ax25, patty_ax25_sock *sock) {
uint32_t hash = hash_addrpair(&sock->local, &sock->remote);
if (patty_dict_set(ax25->socks,
sock->fd,
NULL + sock->fd,
sizeof(sock->fd),
sock) == NULL) {
goto error_dict_set;
}
if (patty_dict_set_with_hash(ax25->socks_by_addrpair,
sock->fd,
NULL + sock->fd,
sizeof(sock->fd),
sock,
hash) == NULL) {