Small hacks to get rid of compiler warnings
This commit is contained in:
parent
e8bf46854a
commit
f67002d06d
1 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ static uint32_t hash_addrpair(patty_ax25_addr *local,
|
||||||
static patty_ax25_sock *sock_get_fd(patty_ax25 *ax25,
|
static patty_ax25_sock *sock_get_fd(patty_ax25 *ax25,
|
||||||
int fd) {
|
int fd) {
|
||||||
return patty_dict_get(ax25->socks,
|
return patty_dict_get(ax25->socks,
|
||||||
fd,
|
NULL + fd,
|
||||||
sizeof(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);
|
uint32_t hash = hash_addrpair(&sock->local, &sock->remote);
|
||||||
|
|
||||||
if (patty_dict_set(ax25->socks,
|
if (patty_dict_set(ax25->socks,
|
||||||
sock->fd,
|
NULL + sock->fd,
|
||||||
sizeof(sock->fd),
|
sizeof(sock->fd),
|
||||||
sock) == NULL) {
|
sock) == NULL) {
|
||||||
goto error_dict_set;
|
goto error_dict_set;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (patty_dict_set_with_hash(ax25->socks_by_addrpair,
|
if (patty_dict_set_with_hash(ax25->socks_by_addrpair,
|
||||||
sock->fd,
|
NULL + sock->fd,
|
||||||
sizeof(sock->fd),
|
sizeof(sock->fd),
|
||||||
sock,
|
sock,
|
||||||
hash) == NULL) {
|
hash) == NULL) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue