cleaned up warnings from BACnet Ethernet 8802.3 compile on Linux

This commit is contained in:
skarg
2015-09-24 21:51:29 +00:00
parent ca0092d4ee
commit ec581ace70
2 changed files with 13 additions and 1 deletions
+8
View File
@@ -68,6 +68,14 @@ extern "C" {
void ethernet_get_broadcast_address(
BACNET_ADDRESS * dest); /* destination address */
/* some functions from Linux driver */
void ethernet_debug_address(
const char *info,
BACNET_ADDRESS * dest);
int ethernet_send(
uint8_t * mtu,
int mtu_len);
#ifdef __cplusplus
}
#endif /* __cplusplus */
+4
View File
@@ -70,6 +70,7 @@ void ethernet_cleanup(
return;
}
#if 0
/*----------------------------------------------------------------------
Portable function to set a socket into nonblocking mode.
Calling this on a socket causes all future read() and write() calls on
@@ -88,6 +89,7 @@ int setNonblocking(
flags = 0;
return fcntl(fd, F_SETFL, flags | O_NONBLOCK);
}
#endif
/* opens an 802.2 socket to receive and send packets */
static int ethernet_bind(
@@ -95,7 +97,9 @@ static int ethernet_bind(
char *interface_name)
{
int sock_fd = -1; /* return value */
#if 0
int sockopt = 0;
#endif
int uid = 0;
fprintf(stderr, "ethernet: opening \"%s\"\n", interface_name);