Skip to content

Commit

Permalink
Fix wrong return type of dmListCommand_execute
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Aug 25, 2023
1 parent 27a2539 commit 777b2e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bundles/shell/shell/src/dm_shell_list_command.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "celix_bundle_context.h"
#include "celix_dependency_manager.h"
#include "celix_dm_component.h"
#include "std_commands.h"

static void parseCommandLine(const char*line, celix_array_list_t **requestedBundleIds, bool *fullInfo, bool *wtf, FILE *err) {
*fullInfo = false;
Expand All @@ -49,7 +50,7 @@ static void parseCommandLine(const char*line, celix_array_list_t **requestedBund
free (str);
}

celix_status_t dmListCommand_execute(void* handle, char * line, FILE *out, FILE *err) {
bool dmListCommand_execute(void* handle, const char* line, FILE *out, FILE *err) {
celix_bundle_context_t *ctx = handle;
celix_dependency_manager_t *mng = celix_bundleContext_getDependencyManager(ctx);

Expand Down Expand Up @@ -91,5 +92,5 @@ celix_status_t dmListCommand_execute(void* handle, char * line, FILE *out, FILE

celix_arrayList_destroy(bundleIds);

return CELIX_SUCCESS;
return true;
}

0 comments on commit 777b2e9

Please sign in to comment.