Skip to content
Snippets Groups Projects
Commit a275abf7 authored by znley's avatar znley Committed by Natanael Copa
Browse files

main/rtapd: fix build with gcc14

parent 2e79de61
No related branches found
No related tags found
1 merge request!70763main/rtapd: fix build with gcc14
Pipeline #254335 skipped
......@@ -13,6 +13,7 @@ subpackages="$pkgname-dbg $pkgname-openrc"
source="https://downloads.sourceforge.net/rtnppd/rtapd-$pkgver.tar.gz
musl-strtoq.patch
Makefile.patch
gcc14.patch
$pkgname.initd
$pkgname.confd"
builddir="$srcdir"/$pkgname
......@@ -36,6 +37,7 @@ sha512sums="
a4759b5af9710e8658f38494f88cfd727e6697b4793655fd80555405dd7fd04e69aaef63692991653f75ff7e2702ec068547d82778bf1cb51c3aa3d8a1178f63 rtapd-1.7.tar.gz
57d7c6fe5530bcd6c2c27dfa8c2cf473d27cc6cde4e8eb50e302b5c13ffec180523ba93179586cf031a50abb8274383245c41dc20beb35765f7ce42300845e10 musl-strtoq.patch
77d0fadea46c610e9b4de3b95f5d4c8b596637fff9501c1eddbdb4e23d49869692a223c75dc7a7f2c9ea057972dc6f0fffe477ea88e7fbbc9af010b29e7cb922 Makefile.patch
eb636723fdb2648cd9a6f192d06f4c370f387002d5544ce285cbe6ec3b8b7ec6beab493bdf9bf7874936a05f10f3451635ab587989bb20dae262113937a8042a gcc14.patch
5452ae881b1d88fdab95b8987f550ef6d26cb60d6697e38b8ab81010aa40dfb9fa4bee8c053069a882fd9f749882cb96777e3a4866299a6651f1e213e6a4448c rtapd.initd
77c3c5bb295b2f3a8c7271ec52a9d4c02bdebc45d7830cb3b0b64b100a2b2649fb28a3e6b615385f9c50f5c847c12064caf981b1dcca2f78432d230649b326fd rtapd.confd
"
diff --git a/rtapd.c b/rtapd.c
index 4da7384..31c84e1 100644
--- a/rtapd.c
+++ b/rtapd.c
@@ -347,7 +347,7 @@ int send_tnpp_packet(int fd, struct sockaddr_un *sun, unsigned char *data,
int length, crc;
if (len > (MAX_PACKET_SIZE - 14))
- return;
+ return 0;
serial++;
if (serial > 255)
serial = 1;
diff --git a/vsnppd.c b/vsnppd.c
index e0f83e2..4089e28 100644
--- a/vsnppd.c
+++ b/vsnppd.c
@@ -64,7 +64,7 @@ int send_tnpp_packet(int fd, struct sockaddr_un *sun, unsigned char *data,
int length, crc;
if (len > (MAX_PACKET_SIZE - 14))
- return;
+ return 0;
snprintf(buf, sizeof(buf) - 1, "%c%04X%02X%04X%02X%c", '\01', tnpp_to, 20,
tnpp_from, 0, '\02');
length = strlen(buf);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment