ostiary: fix compilation with GCC14

Wrong pointer type.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-06-02 15:41:59 -07:00
parent 21ff8c732c
commit 1e1fe45c02
2 changed files with 12 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ostiary
PKG_VERSION:=4.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ingles.homeunix.net/software/ost/latest/

View File

@@ -0,0 +1,11 @@
--- a/ost_main.c
+++ b/ost_main.c
@@ -788,7 +788,7 @@ void Hup_Handler(int sig)
int main(int argc, char *argv[])
{
int i, listen_sock, clnt_sock, success;
- size_t struct_len;
+ socklen_t struct_len;
char hash_out_buf[HASH_TEXT_SIZE]; /* for debug output */
#if HAVE_SIGACTION
struct sigaction sigact;