Skip to content
Permalink
Browse files

BACKENDS: NETWORKING: Fix warning

  • Loading branch information
sev- committed Mar 4, 2017
1 parent 7b35a1e commit cfc83b4a0a89cc2a4f2c034787c16343d98bfbfc
Showing with 1 addition and 2 deletions.
  1. +1 −2 backends/networking/sdl_net/localwebserver.cpp
@@ -305,7 +305,6 @@ void LocalWebserver::resolveAddress(void *ipAddress) {

// if not - try platform-specific
#ifdef POSIX
struct ifaddrs *ifAddrStruct = NULL;
void *tmpAddrPtr = NULL;

int fd = socket(AF_INET, SOCK_DGRAM, 0);
@@ -316,7 +315,7 @@ void LocalWebserver::resolveAddress(void *ipAddress) {
char buffer[LSSDP_BUFFER_LEN] = {};
struct ifconf ifc;
ifc.ifc_len = sizeof(buffer);
ifc.ifc_buf = (caddr_t) buffer;
ifc.ifc_buf = (caddr_t) buffer;

if (ioctl(fd, SIOCGIFCONF, &ifc) < 0) {
warning("LocalWebserver: ioctl SIOCGIFCONF failed: %s (%d)", strerror(errno), errno);

0 comments on commit cfc83b4

Please sign in to comment.
You can’t perform that action at this time.