windows, i love you, more
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Jan 2016 21:43:27 +0000 (16:43 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Jan 2016 21:43:27 +0000 (16:43 -0500)
libs/midi++2/ipmidi_port.cc

index 440374eadea1630c12b31fd9ca1644456ad00d48..4fb54a90bf540d04255719c0a58155eae95fdc43 100644 (file)
@@ -239,7 +239,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
        int size;
 #endif
 
-       if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, &size)) {
+       if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, &size)) {
                ::perror ("getsockopt(IP_MULTICAST_LOOP)");
        } else {
                cout << "********* 1. multicast loopback: " << loop << " size was " << size << endl;
@@ -247,12 +247,12 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
 
        // Turn off loopback...
        loop = 0;
-       if (::setsockopt(sockout, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, sizeof (loop)) < 0) {
+       if (::setsockopt(sockout, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, sizeof (loop)) < 0) {
                ::perror("setsockopt(IP_MULTICAST_LOOP)");
                return false;
        }
 
-       if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (void *) &loop, &size)) {
+       if (::getsockopt (sockin, IPPROTO_IP, IP_MULTICAST_LOOP, (char *) &loop, &size)) {
                ::perror ("getsockopt(IP_MULTICAST_LOOP)");
        } else {
                cout << "********* 2. multicast loopback: " << loop << " size was " << size << endl;