Cleaned up compile warnings
This commit is contained in:
@@ -170,7 +170,7 @@ void handler_atomic_read_file(
|
|||||||
#if PRINT_ENABLED
|
#if PRINT_ENABLED
|
||||||
fprintf(stderr, "Too Big To Send (%d >= %d). Sending Abort!\n",
|
fprintf(stderr, "Too Big To Send (%d >= %d). Sending Abort!\n",
|
||||||
data.type.stream.requestedOctetCount,
|
data.type.stream.requestedOctetCount,
|
||||||
octetstring_capacity(&data.fileData[0]));
|
(int)octetstring_capacity(&data.fileData[0]));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} else if (data.access == FILE_RECORD_ACCESS) {
|
} else if (data.access == FILE_RECORD_ACCESS) {
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ void handler_atomic_write_file(
|
|||||||
#if PRINT_ENABLED
|
#if PRINT_ENABLED
|
||||||
fprintf(stderr, "AWF: Stream offset %d, %d bytes\n",
|
fprintf(stderr, "AWF: Stream offset %d, %d bytes\n",
|
||||||
data.type.stream.fileStartPosition,
|
data.type.stream.fileStartPosition,
|
||||||
octetstring_length(&data.fileData[0]));
|
(int)octetstring_length(&data.fileData[0]));
|
||||||
#endif
|
#endif
|
||||||
len =
|
len =
|
||||||
awf_ack_encode_apdu(&Handler_Transmit_Buffer[pdu_len],
|
awf_ack_encode_apdu(&Handler_Transmit_Buffer[pdu_len],
|
||||||
|
|||||||
@@ -450,7 +450,6 @@ bool Trend_Log_Write_Property(
|
|||||||
{
|
{
|
||||||
bool status = false; /* return value */
|
bool status = false; /* return value */
|
||||||
int len = 0;
|
int len = 0;
|
||||||
int iOffset = 0;
|
|
||||||
BACNET_APPLICATION_DATA_VALUE value;
|
BACNET_APPLICATION_DATA_VALUE value;
|
||||||
TL_LOG_INFO *CurrentLog;
|
TL_LOG_INFO *CurrentLog;
|
||||||
BACNET_DATE TempDate; /* build here in case of error in time half of datetime */
|
BACNET_DATE TempDate; /* build here in case of error in time half of datetime */
|
||||||
|
|||||||
@@ -140,7 +140,8 @@ static void AtomicReadFileAckHandler(
|
|||||||
fprintf(stderr, "Received 0 byte octet string!.\n");
|
fprintf(stderr, "Received 0 byte octet string!.\n");
|
||||||
} else {
|
} else {
|
||||||
printf("\r%d bytes",
|
printf("\r%d bytes",
|
||||||
(data.type.stream.fileStartPosition + octets_written));
|
(int)(data.type.stream.fileStartPosition +
|
||||||
|
octets_written));
|
||||||
}
|
}
|
||||||
fflush(pFile);
|
fflush(pFile);
|
||||||
fclose(pFile);
|
fclose(pFile);
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ int main(
|
|||||||
} else {
|
} else {
|
||||||
End_Of_File_Detected = true;
|
End_Of_File_Detected = true;
|
||||||
}
|
}
|
||||||
printf("\rSending %d bytes", (fileStartPosition + len));
|
printf("\rSending %d bytes", (int)(fileStartPosition + len));
|
||||||
invoke_id =
|
invoke_id =
|
||||||
Send_Atomic_Write_File_Stream
|
Send_Atomic_Write_File_Stream
|
||||||
(Target_Device_Object_Instance,
|
(Target_Device_Object_Instance,
|
||||||
|
|||||||
Reference in New Issue
Block a user