diff options
author | Jin Yoon <jinny.yoon@samsung.com> | 2017-08-11 08:34:28 +0900 |
---|---|---|
committer | Jin Yoon <jinny.yoon@samsung.com> | 2017-08-11 08:45:52 +0900 |
commit | a990059394b7509e66c259390aa2f9ecd41384a9 (patch) | |
tree | 495e335aa5afa90cd16174904ef75d4659083b62 /src | |
parent | d86a718678c2dc8a5ee557c08c11f301c8e47d59 (diff) | |
download | position-finder-server-a990059394b7509e66c259390aa2f9ecd41384a9.tar.gz position-finder-server-a990059394b7509e66c259390aa2f9ecd41384a9.tar.bz2 position-finder-server-a990059394b7509e66c259390aa2f9ecd41384a9.zip |
Trivial modification
Change-Id: Id46b0197faffee323d000606466084168e94b7f7
Diffstat (limited to 'src')
-rw-r--r-- | src/connectivity.c | 6 | ||||
-rw-r--r-- | src/controller.c | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/connectivity.c b/src/connectivity.c index 9165cb9..b0c6d10 100644 --- a/src/connectivity.c +++ b/src/connectivity.c @@ -30,12 +30,10 @@ #include "log.h" #include "connectivity.h" -#define ULTRASONIC_RESOURCE_1_URI "/door/1" -#define ULTRASONIC_RESOURCE_2_URI "/door/2" #define ULTRASONIC_RESOURCE_TYPE "org.tizen.door" +#define CBOR_FILE_IN_RES "/home/owner/apps_rw/org.tizen.position-finder-server/res/iotcon-test-svr-db-server.dat" +#define CBOR_FILE_IN_DATA "/home/owner/apps_rw/org.tizen.position-finder-server/data/iotcon-test-svr-db-server.dat" #define BUFSIZE 1024 -#define CBOR_FILE_IN_RES "/home/owner/apps_rw/org.tizen.position-finder-server/res/iotcon-test-svr-db-server.dat" -#define CBOR_FILE_IN_DATA "/home/owner/apps_rw/org.tizen.position-finder-server/data/iotcon-test-svr-db-server.dat" static void _request_resource_handler(iotcon_resource_h resource, iotcon_request_h request, void *user_data); diff --git a/src/controller.c b/src/controller.c index e662a99..53571c1 100644 --- a/src/controller.c +++ b/src/controller.c @@ -132,6 +132,7 @@ int main(int argc, char* argv[]) app_event_handler_h handlers[5] = {NULL, }; ad = calloc(1, sizeof(app_data)); + retv_if(!ad, -1); event_callback.create = service_app_create; event_callback.terminate = service_app_terminate; |