]> git.alsa-project.org Git - alsa-utils.git/commitdiff
fixed compile on some gcc version..
authorTakashi Iwai <tiwai@suse.de>
Thu, 1 Mar 2001 17:38:07 +0000 (17:38 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Mar 2001 17:38:07 +0000 (17:38 +0000)
seq/aseqnet/aseqnet.c

index 77a885d7865cdc9702cd033fcb393161b4b0327e..50e5c649767be50823bfb4992e475729021cd974 100644 (file)
@@ -20,6 +20,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <netinet/in.h>
+#include <sys/socket.h>
 #include <netdb.h>
 #include <sys/asoundlib.h>
 #include <getopt.h>
@@ -370,7 +371,7 @@ static void init_server(int port)
        setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &curstate, sizeof(curstate));
        /* the return value is ignored.. */
 
-       if (bind(sockfd, &addr, sizeof(addr)) < 0)  {
+       if (bind(sockfd, (struct sockaddr *)&addr, sizeof(addr)) < 0)  {
                perror("can't bind");
                exit(1);
        }
@@ -439,7 +440,7 @@ static void init_client(char *server, int port)
        addr.sin_port = htons(port);
        addr.sin_family = AF_INET;
        memcpy(&addr.sin_addr, host->h_addr, host->h_length);
-       if (connect(fd, &addr, sizeof(addr)) < 0) {
+       if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
                perror("connect");
                exit(1);
        }