diff --git a/src/Makefile.am b/src/Makefile.am index fbaebdc5d..ce787b90d 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,7 +10,7 @@ RIGSRC = hamlibdatetime.h rig.c serial.c serial.h misc.c misc.h register.c regis network.c network.h cm108.c cm108.h gpio.c gpio.h idx_builtin.h token.h \ par_nt.h microham.c microham.h amplifier.c amp_reg.c amp_conf.c \ amp_conf.h amp_settings.c extamp.c sleep.c sleep.h sprintflst.c \ - sprintflst.h cache.c cache.h snapshot_data.c snapshot_data.h multicast.h + sprintflst.h cache.c cache.h snapshot_data.c snapshot_data.h multicast.c multicast.h if VERSIONDLL RIGSRC += \ diff --git a/src/multicast.c b/src/multicast.c index 639b2a409..65c809dda 100644 --- a/src/multicast.c +++ b/src/multicast.c @@ -367,7 +367,7 @@ int multicast_send(RIG *rig, unsigned char *msg, int msglen) return num_bytes; } -#define TEST +//#define TEST #ifdef TEST int main(int argc, char *argv[]) { diff --git a/tests/multicastclient.c b/tests/multicastclient.c index c0c171ae5..106c419bc 100644 --- a/tests/multicastclient.c +++ b/tests/multicastclient.c @@ -46,7 +46,7 @@ int main() // Set the SO_REUSEADDR option to allow multiple processes to use the same address int optval = 1; - if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &optval, + if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char*)&optval, sizeof(optval)) < 0) { //rig_debug(RIG_DEBUG_ERR, "%s: setsockopt: %s\n", __func__, strerror(errno));