From f34877a2023513dc64f95748713da48884510096 Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Mon, 24 Aug 2020 14:53:12 +0000 Subject: - Renamed bogus patch names - Make build under clang11 - Fixed bogus /etc dir reference - pet portlint --- comms/echolinux/files/patch-echolinux_control.c | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 comms/echolinux/files/patch-echolinux_control.c (limited to 'comms/echolinux/files/patch-echolinux_control.c') diff --git a/comms/echolinux/files/patch-echolinux_control.c b/comms/echolinux/files/patch-echolinux_control.c new file mode 100644 index 000000000000..301d929c9a46 --- /dev/null +++ b/comms/echolinux/files/patch-echolinux_control.c @@ -0,0 +1,62 @@ +--- echolinux/control.c.orig 2006-02-24 19:28:15 UTC ++++ echolinux/control.c +@@ -12,6 +12,7 @@ $Log$ + + #include + #include ++#include + #include + #include + #include +@@ -44,7 +45,7 @@ int outControlSocket, inControlSocket; + int connectTimeout, sdesLength; + struct hostent *hp; + char *remoteNode = NULL; +-struct timeval timeout; ++static struct timeval timeout; + + int connected = 0, atemptingConnect = 0, quit = 0; + pid_t audioPid; +@@ -130,7 +131,7 @@ int makeConnection(char *host){ + close(audioInPipe[1]); + close(audioInPipe[0]); + +- execlp("echoaudio", "echoaudio", remoteNode, callsign, 0); ++ execlp("echoaudio", "echoaudio", remoteNode, callsign, NULL); + perror("echoaudio"); + exit(1); + } +@@ -179,12 +180,12 @@ int makeConnection(char *host){ + connectTimeout = 0; + timeout.tv_sec = 10; + timeout.tv_usec = 0; +- ++ return(1); + } + + /**** disconnect from remote node *********/ + +-int disconnect(int sendBye){ ++static void disconnect(int sendBye){ + + int i, length; + unsigned char *bye; +@@ -258,7 +259,8 @@ void readStdin(void){ + + int main(int argc, char *argv[]){ + +- int length, i, len_inet; ++ int length, i; ++ socklen_t len_inet; + char c, remoteName[40], line[80], *home; + struct rtcp_sdes_request sdesItems; + +@@ -277,7 +279,7 @@ int main(int argc, char *argv[]){ + strcat(line, "/.echoLinux/userdata.txt"); + userData = fopen(line, "r"); + if(userData == NULL){ +- userData = fopen("/etc/echolinux/userdata.txt", "r"); ++ userData = fopen("%%LOCALBASE%%/etc/echolinux/userdata.txt", "r"); + if(userData == NULL){ + perror("userData"); + exit(1); -- cgit v1.2.3