Updated for consumer APIs.
[contrib/iotivity.git] / service / notification / src / consumer / NSConsumerNetworkEventListener.c
index 1dd6764..ca78381 100644 (file)
@@ -56,12 +56,12 @@ NSResult NSConsumerListenerInit()
     NS_LOG(DEBUG, "Request to subscribe presence");
     OCStackResult stackResult = NSInvokeRequest(getPresenceHandle(), OC_REST_PRESENCE, NULL,
                         NS_PRESENCE_SUBSCRIBE_QUERY, NULL, NSConsumerPresenceListener, NULL);
-    NS_VERTIFY_STACK_OK(stackResult, NS_ERROR);
+    NS_VERIFY_STACK_OK(stackResult, NS_ERROR);
 
     NS_LOG(DEBUG, "Request to discover provider");
     stackResult = NSInvokeRequest(NULL, OC_REST_DISCOVER, NULL,
                       NS_DISCOVER_QUERY, NULL, NSProviderDiscoverListener, NULL);
-    NS_VERTIFY_STACK_OK(stackResult, NS_ERROR);
+    NS_VERIFY_STACK_OK(stackResult, NS_ERROR);
 
     return NS_OK;
 }
@@ -87,7 +87,7 @@ void NSConnectionStateListener(CATransportAdapter_t adapter,
         NS_LOG(DEBUG, "try to discover notification provider.");
 
         NSTask * task = NSMakeTask(TASK_EVENT_CONNECTED, NULL);
-        NS_VERTIFY_NOT_NULL_V(task);
+        NS_VERIFY_NOT_NULL_V(task);
 
         NSConsumerPushEvent(task);
     }
@@ -105,7 +105,7 @@ void NSAdapterStateListener(CATransportAdapter_t adapter, bool enabled)
         NS_LOG(DEBUG, "try to discover notification provider.");
 
         NSTask * task = NSMakeTask(TASK_EVENT_CONNECTED, NULL);
-        NS_VERTIFY_NOT_NULL_V(task);
+        NS_VERIFY_NOT_NULL_V(task);
 
         NSConsumerPushEvent(task);
     }