Cleaned up compiler warnings for Borland 5.5 compile.

This commit is contained in:
skarg
2008-03-08 15:09:14 +00:00
parent a3e2d61f56
commit cff20d7669
5 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ uint16_t bip_receive(
struct timeval select_timeout;
struct sockaddr_in sin = { -1 };
socklen_t sin_len = sizeof(sin);
unsigned i = 0;
uint16_t i = 0;
/* Make sure the socket is open */
if (BIP_Socket < 0)
@@ -250,7 +250,7 @@ uint16_t bip_receive(
(pdu[1] == BVLC_ORIGINAL_BROADCAST_NPDU)) {
/* ignore messages from me */
if ((sin.sin_addr.s_addr == htonl(BIP_Address.s_addr)) &&
(sin.sin_port == htonl(BIP_Port))) {
(sin.sin_port == htons(BIP_Port))) {
pdu_len = 0;
#if PRINT_ENABLED
fprintf(stderr,"BIP: src is me. Discarded!\n");