mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-30 16:59:15 +02:00
fix pcalls
This commit is contained in:
+1
-5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user