From 722fefbda69f4c8540f947430971e1e59d7289d0 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Thu, 24 Mar 2022 00:21:12 +0100 Subject: [PATCH] Compile warnings. --- src/dwsock.h | 2 +- src/log.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dwsock.h b/src/dwsock.h index 23e63e1..986f6a2 100644 --- a/src/dwsock.h +++ b/src/dwsock.h @@ -11,7 +11,7 @@ int dwsock_init (void); -int dwsock_connect (char *hostname, char *port, char *description, int allow_ipv6, int debug, char *ipaddr_str); +int dwsock_connect (char *hostname, char *port, char *description, int allow_ipv6, int debug, char ipaddr_str[DWSOCK_IPADDR_LEN]); /* ipaddr_str needs to be at least SOCK_IPADDR_LEN bytes */ char *dwsock_ia_to_text (int Family, void * pAddr, char * pStringBuf, size_t StringBufSize); diff --git a/src/log.c b/src/log.c index 02aab2a..c8b2f82 100644 --- a/src/log.c +++ b/src/log.c @@ -345,7 +345,7 @@ void log_write (int chan, decode_aprs_t *A, packet_t pp, alevel_t alevel, retry_ char sstatus[40]; char stelemetry[200]; char scomment[256]; - char alevel_text[32]; + char alevel_text[40];