From 8b532705d994ccbf5db747e10cf892dda9640375 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 11 Apr 2019 11:04:16 +0100 Subject: [PATCH] Fix test datatype. --- test/unit/property_user_read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/property_user_read.c b/test/unit/property_user_read.c index a54fd200..d458eb7a 100644 --- a/test/unit/property_user_read.c +++ b/test/unit/property_user_read.c @@ -194,7 +194,7 @@ static void read_binary_helper(const mosquitto_property *proplist, int identifie { const mosquitto_property *prop; void *value = NULL; - int length; + uint16_t length; prop = mosquitto_property_read_binary(proplist, identifier, &value, &length, false); CU_ASSERT_PTR_NOT_NULL(prop); @@ -439,7 +439,7 @@ static void missing_read_helper(mosquitto_property *proplist) uint16_t int16_value; uint32_t int32_value; char *key, *value; - int length; + uint16_t length; /* MISSING */ prop = mosquitto_property_read_byte(proplist, MQTT_PROP_MESSAGE_EXPIRY_INTERVAL, &byte_value, false);