Skip to content

Commit

Permalink
CELIX-289: partly revert of aec12cd
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetri committed Nov 11, 2015
1 parent 1b7b3e8 commit 4f6b0c0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion deployment_admin/private/src/deployment_admin_activator.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ celix_status_t bundleActivator_stop(void * userData, bundle_context_pt context)
}

celix_status_t bundleActivator_destroy(void * userData, bundle_context_pt context) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

bundle_activator_pt activator = (bundle_activator_pt) userData;

Expand Down
2 changes: 1 addition & 1 deletion deployment_admin/private/src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ celix_status_t log_destroy(log_pt *log) {
}

celix_status_t log_log(log_pt log, unsigned int type, properties_pt properties) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

log_event_pt event = NULL;

Expand Down
10 changes: 5 additions & 5 deletions log_service/private/src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ celix_status_t log_bundleChanged(void *listener, bundle_event_pt event) {
}

celix_status_t log_frameworkEvent(void *listener, framework_event_pt event) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;
log_pt logger = ((framework_listener_pt) listener)->handle;
log_entry_pt entry = NULL;

Expand All @@ -235,7 +235,7 @@ celix_status_t log_frameworkEvent(void *listener, framework_event_pt event) {
}

celix_status_t log_addLogListener(log_pt logger, log_listener_pt listener) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

status = celixThreadMutex_lock(&logger->listenerLock);

Expand Down Expand Up @@ -280,7 +280,7 @@ celix_status_t log_removeLogListener(log_pt logger, log_listener_pt listener) {
}

celix_status_t log_removeAllLogListener(log_pt logger) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

status = celixThreadMutex_lock(&logger->listenerLock);

Expand All @@ -294,7 +294,7 @@ celix_status_t log_removeAllLogListener(log_pt logger) {
}

static celix_status_t log_startListenerThread(log_pt logger) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

logger->running = true;
logger->running = true;
Expand All @@ -304,7 +304,7 @@ static celix_status_t log_startListenerThread(log_pt logger) {
}

static celix_status_t log_stopListenerThread(log_pt logger) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

logger->running = false;

Expand Down
4 changes: 2 additions & 2 deletions log_service/public/src/log_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ celix_status_t logHelper_create(bundle_context_pt context, log_helper_pt* loghel

celix_status_t logHelper_start(log_helper_pt loghelper)
{
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;
service_tracker_customizer_pt logTrackerCustomizer = NULL;

status = serviceTrackerCustomizer_create(loghelper, NULL, logHelper_logServiceAdded, NULL, logHelper_logServiceRemoved, &logTrackerCustomizer);
Expand Down Expand Up @@ -126,7 +126,7 @@ celix_status_t logHelper_logServiceRemoved(void *handle, service_reference_pt re


celix_status_t logHelper_stop(log_helper_pt loghelper) {
celix_status_t status = CELIX_SUCCESS;
celix_status_t status;

status = serviceTracker_close(loghelper->logServiceTracker);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ celix_status_t endpointDiscoveryPoller_removeDiscoveryEndpoint(endpoint_discover


celix_status_t endpointDiscoveryPoller_poll(endpoint_discovery_poller_pt poller, char *url, array_list_pt currentEndpoints) {
celix_status_t status = NULL;
celix_status_t status;
array_list_pt updatedEndpoints = NULL;

// create an arraylist with a custom equality test to ensure we can find endpoints properly...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@ celix_status_t topologyManager_rsaRemoved(void * handle, service_reference_pt re
topologyManager_notifyListenersEndpointRemoved(manager, rsa, export);
rsa->exportRegistration_close(export);
}

arrayList_destroy(exports_list);
exports_list = NULL;
}

hashMap_remove(exports, rsa);
Expand Down

0 comments on commit 4f6b0c0

Please sign in to comment.