From 34afdba9e47c0c4f38ed148b5ed97e4c5b64a8cf Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 9 Jun 2020 00:40:28 -0400 Subject: [PATCH] Suppress int/void* cast compiler errors --- src/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/if.c b/src/if.c index a68f707..1894150 100644 --- a/src/if.c +++ b/src/if.c @@ -279,7 +279,7 @@ int patty_ax25_add_if(patty_ax25 *ax25, patty_ax25_if *iface) { } } - if (patty_dict_set(ax25->socks, fd, sizeof(fd), iface) == NULL) { + if (patty_dict_set(ax25->socks, NULL + fd, sizeof(fd), iface) == NULL) { goto error_dict_set; } @@ -319,7 +319,7 @@ int patty_ax25_delete_if(patty_ax25 *ax25, patty_ax25_if *iface) { ax25->fdmax--; } - if (patty_dict_delete(ax25->socks, fd, sizeof(fd)) == NULL) { + if (patty_dict_delete(ax25->socks, NULL + fd, sizeof(fd)) == NULL) { goto error_dict_delete; } }