Fixed up most warnings after bacdcode changes to unsigned and signed decoding.

Fixed up the Visual C++ demo in ports/win32/bacnet/
This commit is contained in:
skarg
2006-01-16 15:00:22 +00:00
parent 2adca3320d
commit cabdeab081
25 changed files with 138 additions and 125 deletions
+1 -3
View File
@@ -34,14 +34,12 @@
#include "apdu.h"
#include "npdu.h"
#include "abort.h"
#include "rp.h"
#include "arf.h"
/* demo objects */
#include "device.h"
#include "ai.h"
#include "ao.h"
#if BACFILE
#include "bacfile.h"
#endif
void handler_atomic_read_file(
uint8_t *service_request,
+1
View File
@@ -24,6 +24,7 @@
*********************************************************************/
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include "config.h"
#include "txbuf.h"
#include "bacdef.h"
-2
View File
@@ -43,8 +43,6 @@
#include "bacfile.h"
#endif
static uint8_t Temp_Buf[MAX_APDU] = {0};
void handler_write_property(
uint8_t *service_request,
uint16_t service_len,
+1
View File
@@ -24,6 +24,7 @@
*********************************************************************/
#include <stddef.h>
#include <stdint.h>
#include <errno.h>
#include "config.h"
#include "config.h"
#include "txbuf.h"
+1
View File
@@ -24,6 +24,7 @@
*********************************************************************/
#include <stddef.h>
#include <stdint.h>
#include <errno.h>
#include "config.h"
#include "config.h"
#include "txbuf.h"
+1
View File
@@ -24,6 +24,7 @@
*********************************************************************/
#include <stddef.h>
#include <stdint.h>
#include <errno.h>
#include "config.h"
#include "config.h"
#include "txbuf.h"
+6 -3
View File
@@ -608,7 +608,8 @@ bool Device_Write_Property(
case PROP_NUMBER_OF_APDU_RETRIES:
if (wp_data->value.tag == BACNET_APPLICATION_TAG_UNSIGNED_INT)
{
Device_Set_Number_Of_APDU_Retries(wp_data->value.type.Unsigned_Int);
/* FIXME: bounds check? */
Device_Set_Number_Of_APDU_Retries((uint8_t)wp_data->value.type.Unsigned_Int);
status = true;
}
else
@@ -621,7 +622,8 @@ bool Device_Write_Property(
case PROP_APDU_TIMEOUT:
if (wp_data->value.tag == BACNET_APPLICATION_TAG_UNSIGNED_INT)
{
Device_Set_APDU_Timeout(wp_data->value.type.Unsigned_Int);
/* FIXME: bounds check? */
Device_Set_APDU_Timeout((uint16_t)wp_data->value.type.Unsigned_Int);
status = true;
}
else
@@ -634,7 +636,8 @@ bool Device_Write_Property(
case PROP_VENDOR_IDENTIFIER:
if (wp_data->value.tag == BACNET_APPLICATION_TAG_UNSIGNED_INT)
{
Device_Set_Vendor_Identifier(wp_data->value.type.Unsigned_Int);
/* FIXME: bounds check? */
Device_Set_Vendor_Identifier((uint16_t)wp_data->value.type.Unsigned_Int);
status = true;
}
else
+2
View File
@@ -27,7 +27,9 @@
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h> /* for time */
#include <errno.h>
#include "bactext.h"
#include "iam.h"
#include "arf.h"
Binary file not shown.