Fixing compiler warnings (compiled with IAR and configured for no printing)

This commit is contained in:
skarg
2010-09-07 16:16:15 +00:00
parent 3f3af6a072
commit 4105d22b4b
8 changed files with 38 additions and 8 deletions
+6 -1
View File
@@ -101,8 +101,11 @@ void Send_I_Am(
bytes_sent = datalink_send_pdu(&dest, &npdu_data, &buffer[0], pdu_len);
#if PRINT_ENABLED
if (bytes_sent <= 0)
if (bytes_sent <= 0) {
fprintf(stderr, "Failed to Send I-Am Reply (%s)!\n", strerror(errno));
}
#else
bytes_sent = bytes_sent;
#endif
}
@@ -183,5 +186,7 @@ void Send_I_Am_Unicast(
#if PRINT_ENABLED
if (bytes_sent <= 0)
fprintf(stderr, "Failed to Send I-Am Reply (%s)!\n", strerror(errno));
#else
bytes_sent = bytes_sent;
#endif
}