From: Robert Spielmann Date: Tue, 22 Mar 2016 14:39:22 +0000 (+0100) Subject: Fixed Typos: DEFALUT -> DEFAULT X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6218e5404171e1c5b4b7fbb8a33ab790d1ef63a9;p=contrib%2Fiotivity.git Fixed Typos: DEFALUT -> DEFAULT Change-Id: If23217339d99ba5ad9e38133607de813ba27fd75 Signed-off-by: Robert Spielmann Reviewed-on: https://gerrit.iotivity.org/gerrit/6179 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Ziran Sun --- diff --git a/service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp b/service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp index 770304b..66534f6 100644 --- a/service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp +++ b/service/resource-encapsulation/examples/linux/NestedAttributesServer.cpp @@ -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; diff --git a/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp b/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp index 2c95ee9..65b9cd6 100644 --- a/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp +++ b/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp @@ -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() diff --git a/service/resource-encapsulation/examples/linux/secureResourceExample/SampleSecureServer.cpp b/service/resource-encapsulation/examples/linux/secureResourceExample/SampleSecureServer.cpp index 5d5a345..2457bb0 100644 --- a/service/resource-encapsulation/examples/linux/secureResourceExample/SampleSecureServer.cpp +++ b/service/resource-encapsulation/examples/linux/secureResourceExample/SampleSecureServer.cpp @@ -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() diff --git a/service/resource-encapsulation/examples/tizen/RESampleServerApp/inc/reserver.h b/service/resource-encapsulation/examples/tizen/RESampleServerApp/inc/reserver.h index 8aed849..e176ab2 100644 --- a/service/resource-encapsulation/examples/tizen/RESampleServerApp/inc/reserver.h +++ b/service/resource-encapsulation/examples/tizen/RESampleServerApp/inc/reserver.h @@ -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__ diff --git a/service/resource-encapsulation/examples/tizen/RESampleServerApp/src/reserver.cpp b/service/resource-encapsulation/examples/tizen/RESampleServerApp/src/reserver.cpp index 728a5e3..2797b53 100755 --- a/service/resource-encapsulation/examples/tizen/RESampleServerApp/src/reserver.cpp +++ b/service/resource-encapsulation/examples/tizen/RESampleServerApp/src/reserver.cpp @@ -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
"; dlog_print(DLOG_INFO, LOG_TAG, "#### %s", logMessage.c_str());