File ftbfs-gcc14.patch of Package aprx

Description: Fix FTBFS Error for GCC14
Author: Dave Hibberd <hibby@debian.org>
Forwarded: yes
Bug: https://github.com/PhirePhly/aprx/issues/78
Last-Update: 2024-08-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/ttyreader.c
+++ b/ttyreader.c
@@ -705,6 +705,7 @@
 void
 aprx_cfmakeraw(t, f)
 	struct termios *t;
+	int f;
 {
 
 	t->c_iflag &= ~(IMAXBEL|IXOFF|INPCK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON|IGNPAR);
--- a/test.c
+++ b/test.c
@@ -14,7 +14,7 @@
 	return h;
 }
 
-main()
+int main()
 {
 	printf("APRSPASS: %d\n", aprspass("OH2MQK-1"));
 	return 0;
openSUSE Build Service is sponsored by