celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject celix git commit: CELIX-284: Added missing return statements, fix invalid method definition
Date Fri, 20 Nov 2015 17:36:06 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 804a46321 -> c8949706a


CELIX-284: Added missing return statements, fix invalid method definition


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/c8949706
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/c8949706
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/c8949706

Branch: refs/heads/develop
Commit: c8949706a4fe317d73eec7e284861988496a0dd9
Parents: 804a463
Author: Bjoern Petri <bpetri@apache.org>
Authored: Fri Nov 20 18:34:44 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Fri Nov 20 18:34:44 2015 +0100

----------------------------------------------------------------------
 remote_services/topology_manager/tms_tst/bundle/tst_service.h  | 2 +-
 .../topology_manager/tms_tst/disc_mock/disc_mock_service.c     | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/c8949706/remote_services/topology_manager/tms_tst/bundle/tst_service.h
----------------------------------------------------------------------
diff --git a/remote_services/topology_manager/tms_tst/bundle/tst_service.h b/remote_services/topology_manager/tms_tst/bundle/tst_service.h
index ba18583..342d072 100644
--- a/remote_services/topology_manager/tms_tst/bundle/tst_service.h
+++ b/remote_services/topology_manager/tms_tst/bundle/tst_service.h
@@ -9,7 +9,7 @@
 
 struct tst_service {
     void *handle;
-    int (*IsImported)(void *handle);
+    bool (*IsImported)(void *handle);
 };
 
 typedef struct tst_service *tst_service_pt;

http://git-wip-us.apache.org/repos/asf/celix/blob/c8949706/remote_services/topology_manager/tms_tst/disc_mock/disc_mock_service.c
----------------------------------------------------------------------
diff --git a/remote_services/topology_manager/tms_tst/disc_mock/disc_mock_service.c b/remote_services/topology_manager/tms_tst/disc_mock/disc_mock_service.c
index 99aa8fb..07c35b7 100644
--- a/remote_services/topology_manager/tms_tst/disc_mock/disc_mock_service.c
+++ b/remote_services/topology_manager/tms_tst/disc_mock/disc_mock_service.c
@@ -26,11 +26,15 @@ celix_status_t discMockService_create(void *handle, disc_mock_service_pt
*serv)
 
     (*serv)->handle = handle;
 	(*serv)->getEPDescriptors = test;
+
+	return CELIX_SUCCESS;
 }
 
 celix_status_t discMockService_destroy(disc_mock_service_pt serv)
 {
 	free(serv);
+
+	return CELIX_SUCCESS;
 }
 
 celix_status_t test(void *handle, array_list_pt *descrList)
@@ -38,5 +42,5 @@ celix_status_t test(void *handle, array_list_pt *descrList)
     struct disc_mock_activator *act = handle;
     *descrList = act->endpointList;
 
-	return 0;
+    return CELIX_SUCCESS;
 }


Mime
View raw message