Commit 6218e540 authored by Robert Spielmann's avatar Robert Spielmann Committed by Ziran Sun

Fixed Typos: DEFALUT -> DEFAULT

Change-Id: If23217339d99ba5ad9e38133607de813ba27fd75
Signed-off-by: default avatarRobert Spielmann <spielmann@kellendonk.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6179Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarPhil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: default avatarZiran Sun <ziran.sun@samsung.com>
parent 2210aba6
......@@ -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;
......
......@@ -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()
......
......@@ -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()
......
......@@ -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__
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment