Fixed Typos: DEFALUT -> DEFAULT
authorRobert Spielmann <spielmann@kellendonk.de>
Tue, 22 Mar 2016 14:39:22 +0000 (15:39 +0100)
committerZiran Sun <ziran.sun@samsung.com>
Mon, 21 Nov 2016 13:27:15 +0000 (13:27 +0000)
Change-Id: If23217339d99ba5ad9e38133607de813ba27fd75
Signed-off-by: Robert Spielmann <spielmann@kellendonk.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6179
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp
service/resource-encapsulation/examples/linux/SampleResourceServer.cpp
service/resource-encapsulation/examples/linux/secureResourceExample/SampleSecureServer.cpp
service/resource-encapsulation/examples/tizen/RESampleServerApp/inc/reserver.h
service/resource-encapsulation/examples/tizen/RESampleServerApp/src/reserver.cpp

index 770304b..66534f6 100644 (file)
@@ -28,7 +28,7 @@ constexpr int DEFAULT_SPEED = 30;
 constexpr int UP_SPEED = 50;
 constexpr int DOWN_SPEED = 10;
 
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
 constexpr int CUSTOM_SERVER = 2;
 constexpr int STOP = 3;
 
@@ -263,7 +263,7 @@ int selectServerMenu()
 {
     switch (processUserInput())
     {
-        case DEFALUT_SERVER:
+        case DEFAULT_SERVER:
             // Creation of Resource & Auto control for all requests from Client.
             initServer();
             return CORRECT_INPUT;
index 2c95ee9..65b9cd6 100644 (file)
@@ -29,7 +29,7 @@ struct CloseApp{};
 constexpr int RESOURCE_TEMP = 1;
 constexpr int RESOURCE_LIGHT = 2;
 
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
 constexpr int CUSTOM_SERVER = 2;
 
 constexpr int INCREASE = 1;
@@ -210,13 +210,13 @@ void runResourceTypeSelection(int resourceMode)
 void runResourceModeSelection()
 {
     std::cout << "========================================================          \n";
-    std::cout << DEFALUT_SERVER << ". Creation of Simple Resource Without Handlers  \n";
+    std::cout << DEFAULT_SERVER << ". Creation of Simple Resource Without Handlers  \n";
     std::cout << CUSTOM_SERVER << ". Creation of Resource With Set and Get Handlers \n";
     std::cout << CUSTOM_SERVER + 1 << ". Quit                                       \n";
     std::cout << "========================================================          \n";
 
     g_currentRun = std::bind(runResourceTypeSelection,
-            processUserInput(DEFALUT_SERVER, CUSTOM_SERVER));
+            processUserInput(DEFAULT_SERVER, CUSTOM_SERVER));
 }
 
 void runPresenceSelection()
index 5d5a345..2457bb0 100644 (file)
@@ -28,7 +28,7 @@ struct CloseApp {};
 
 constexpr int RESOURCE_LIGHT = 1;
 
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
 constexpr int CUSTOM_SERVER = 2;
 
 constexpr int INCREASE = 1;
@@ -175,13 +175,13 @@ void runResourceTypeSelection(int resourceMode)
 void runResourceModeSelection()
 {
     std::cout << "========================================================          \n";
-    std::cout << DEFALUT_SERVER << ". Creation of Secure Resource Without Handlers  \n";
+    std::cout << DEFAULT_SERVER << ". Creation of Secure Resource Without Handlers  \n";
     std::cout << CUSTOM_SERVER << ". Creation of Secure Resource With Set and Get Handlers \n";
     std::cout << CUSTOM_SERVER + 1 << ". Quit                                       \n";
     std::cout << "========================================================          \n";
 
     g_currentRun = std::bind(runResourceTypeSelection,
-                             processUserInput(DEFALUT_SERVER, CUSTOM_SERVER));
+                             processUserInput(DEFAULT_SERVER, CUSTOM_SERVER));
 }
 
 void runPresenceSelection()
index 8aed849..e176ab2 100644 (file)
@@ -31,7 +31,7 @@ using namespace OIC::Service;
 typedef void(*ClientMenuHandler)();
 typedef int ReturnValue;
 
-constexpr int DEFALUT_VALUE = 0;
+constexpr int DEFAULT_VALUE = 0;
 
 constexpr int PRESENCE_ON = 1;
 constexpr int PRESENCE_OFF = 2;
@@ -58,4 +58,4 @@ void start_server_cb(void *data, Evas_Object *obj, void *event_info);
 
 void *showAPIs(void *data);
 
-#endif // RESERVER_H__
\ No newline at end of file
+#endif // RESERVER_H__
index 728a5e3..2797b53 100755 (executable)
@@ -197,7 +197,7 @@ static void initServer()
 
     server->setAutoNotifyPolicy(RCSResourceObject::AutoNotifyPolicy::UPDATED);
     server->setSetRequestHandlerPolicy(RCSResourceObject::SetRequestHandlerPolicy::NEVER);
-    server->setAttribute(g_attributeKey, DEFALUT_VALUE);
+    server->setAttribute(g_attributeKey, DEFAULT_VALUE);
 
     string logMessage = "SERVER CREATED<br>";
     dlog_print(DLOG_INFO, LOG_TAG, "#### %s", logMessage.c_str());