From f67002d06d94e5e034a5055e843ab60c988805fa Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 7 Jun 2020 03:18:35 -0400 Subject: [PATCH] Small hacks to get rid of compiler warnings --- src/ax25.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ax25.c b/src/ax25.c index b9d6bbd..0d3d54a 100644 --- a/src/ax25.c +++ b/src/ax25.c @@ -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) {