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