projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.0.0
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
stack
/
samples
/
linux
/
SimpleClientServer
/
ocserverbasicops.cpp
diff --git
a/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.cpp
b/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.cpp
index
e389865
..
2c3cfdb
100644
(file)
--- a/
resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.cpp
+++ b/
resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.cpp
@@
-220,12
+220,13
@@
OCEntityHandlerResult ProcessPostRequest (OCEntityHandlerRequest *ehRequest,
OCEntityHandlerResult
OCEntityHandlerCb (OCEntityHandlerFlag flag,
OCEntityHandlerResult
OCEntityHandlerCb (OCEntityHandlerFlag flag,
- OCEntityHandlerRequest *entityHandlerRequest,void* callbackParam)
+ OCEntityHandlerRequest *entityHandlerRequest,
+ void* /*callbackParam*/)
{
OC_LOG_V (INFO, TAG, "Inside entity handler - flags: 0x%x", flag);
OCEntityHandlerResult ehResult = OC_EH_ERROR;
{
OC_LOG_V (INFO, TAG, "Inside entity handler - flags: 0x%x", flag);
OCEntityHandlerResult ehResult = OC_EH_ERROR;
- OCEntityHandlerResponse response;
+ OCEntityHandlerResponse response
= { 0, 0, OC_EH_ERROR, 0, 0, { },{ 0 }, false }
;
// Validate pointer
if (!entityHandlerRequest)
// Validate pointer
if (!entityHandlerRequest)
@@
-298,7
+299,7
@@
void handleSigInt(int signum)
}
}
}
}
-int main(int
argc, char* argv
[])
+int main(int
/*argc*/, char* /*argv*/
[])
{
OC_LOG(DEBUG, TAG, "OCServer is starting...");
if (OCInit(NULL, 0, OC_SERVER) != OC_STACK_OK)
{
OC_LOG(DEBUG, TAG, "OCServer is starting...");
if (OCInit(NULL, 0, OC_SERVER) != OC_STACK_OK)