From 5f864f1191cd85407bf241c211ef262fab422b81 Mon Sep 17 00:00:00 2001 From: "jaesick.shin" Date: Thu, 11 Aug 2016 20:18:30 +0900 Subject: [PATCH] Change constant to define. change constant to NS_UUID_STRING_SIZE(define) in NSStruct.h Change-Id: I6f401a61edbdc1fc4f39917bf2cd73be40c02ed6 Signed-off-by: jaesick.shin Reviewed-on: https://gerrit.iotivity.org/gerrit/10273 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- service/notification/src/common/NSStructs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service/notification/src/common/NSStructs.h b/service/notification/src/common/NSStructs.h index 6ab9729..4c30ed9 100644 --- a/service/notification/src/common/NSStructs.h +++ b/service/notification/src/common/NSStructs.h @@ -54,7 +54,7 @@ typedef struct typedef struct { - char id[37]; + char id[NS_UUID_STRING_SIZE]; int syncObId; // sync resource observer ID for local consumer int messageObId; // message resource observer ID for local consumer int remote_syncObId; //sync observer ID subscribed through remote server @@ -78,7 +78,7 @@ typedef struct typedef struct { - char id[37]; + char id[NS_UUID_STRING_SIZE]; char * topicName; NSTopicState state; @@ -100,7 +100,7 @@ typedef struct OCResourceHandle handle; uint64_t messageId; - char providerId[37]; + char providerId[NS_UUID_STRING_SIZE]; //optional NSMessageType type; @@ -122,13 +122,13 @@ typedef struct typedef struct { OCResourceHandle handle; - char consumerId[37]; + char consumerId[NS_UUID_STRING_SIZE]; NSTopicList ** TopicList; } NSTopicResource; typedef struct { - char providerId[37]; + char providerId[NS_UUID_STRING_SIZE]; char * providerName; char * userInfo; } NSProviderInfo; -- 2.7.4