Fixed multiple declarations issue
authorSudarshan Prasad <sudarshan.prasad@intel.com>
Tue, 30 Dec 2014 19:00:40 +0000 (11:00 -0800)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Mon, 5 Jan 2015 22:07:29 +0000 (22:07 +0000)
Thanks to Sam for finding the issue.

Change-Id: I357f83c043dc9aa5a7c0f8513eddf18514188269
Signed-Off-By: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/examples/simpleclientHQ.cpp

index f1c0f4d..5a3d9e2 100644 (file)
@@ -407,9 +407,8 @@ int main(int argc, char* argv[]) {
     {
         // Find all resources
 #ifdef CA_INT
-        OCConnectivityType connectivityType = OC_WIFI;
         OCPlatform::findResource("", "coap://224.0.1.187/oc/core?rt=core.light",
-                connectivityType, &foundResource, OC::QualityOfService::LowQos);
+                OC_WIFI, &foundResource, OC::QualityOfService::LowQos);
 #else
         OCPlatform::findResource("", "coap://224.0.1.187/oc/core?rt=core.light", &foundResource,
                 OC::QualityOfService::LowQos);
@@ -420,9 +419,8 @@ int main(int argc, char* argv[]) {
         // These resources will have the same uniqueidentifier (yet be different objects), so that
         // we can verify/show the duplicate-checking code in foundResource(above);
 #ifdef CA_INT
-        OCConnectivityType connectivityType = OC_WIFI;
         OCPlatform::findResource("", "coap://224.0.1.187/oc/core?rt=core.light",
-                connectivityType, &foundResource, OC::QualityOfService::LowQos);
+                OC_WIFI, &foundResource, OC::QualityOfService::LowQos);
 #else
         OCPlatform::findResource("", "coap://224.0.1.187/oc/core?rt=core.light", &foundResource,
                 OC::QualityOfService::LowQos);