provisioning: Support older g++ (for Tizen)
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 21 Sep 2016 10:26:49 +0000 (12:26 +0200)
committerRandeep Singh <randeep.s@samsung.com>
Fri, 23 Sep 2016 04:56:15 +0000 (04:56 +0000)
It was successfully tested with gcc-4.6.4
 on Tizen:2.3.1:Wearable.

Change-Id: Ib97c4bfe73d1d40ee8a029a016b7d69e2b3e3d99
Origin: https://gerrit.iotivity.org/gerrit/#/c/12059/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12059
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/provisioning/examples/cloudWrapper.cpp

index 493ff47..2a3570d 100644 (file)
@@ -418,10 +418,10 @@ exit:
                     OicSecRsrc_t *res = &ace->resources[l];
                     OICFree(res->href);
 
-                    stringArray_t rt = {.array = res->types, .length = res->typeLen};
+                    stringArray_t rt { res->types, res->typeLen};
                     clearStringArray(&rt);
 
-                    stringArray_t _if = {.array = res->interfaces, .length = res->interfaceLen};
+                    stringArray_t _if {res->interfaces, res->interfaceLen};
                     clearStringArray(&_if);
                 }
             }