fix pcalls

This commit is contained in:
2026-03-10 17:15:42 +01:00
parent ad4f80c2b9
commit ca44cf83dc
6 changed files with 7 additions and 13 deletions
+1 -5
View File
@@ -8,9 +8,7 @@ static struct pollfd poller;
static struct sockaddr_in client_addr;
static socklen_t client_len = sizeof(client_addr);
static RDSModulator* mod = NULL;
int open_udp_server(int port, RDSModulator* rds_mod) {
int open_udp_server(int port) {
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd < 0) return -1;
@@ -30,8 +28,6 @@ int open_udp_server(int port, RDSModulator* rds_mod) {
poller.fd = sockfd;
poller.events = POLLIN;
mod = rds_mod;
return 0;
}