The ip_mreq initialization was generating a warning. This
corrects the initializer to properly initialize it as far as
the compiler is concerned.
Change-Id: Iea663e7d198dd23f7e9f6ae1050e12d9017db053
Signed-off-by: Erich Keane <erich.keane@intel.com>
}
// add membership to receiving socket
- struct ip_mreq mreq = {0};
+ struct ip_mreq mreq = {{0}};
mreq.imr_interface.s_addr = htonl(INADDR_ANY);
mreq.imr_multiaddr.s_addr = sin->sin_addr.s_addr;
if ((ret = setsockopt(sfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *) &mreq, sizeof(mreq))) < 0) {