This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch hotfix/version-range-ldap
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 777b2e970dac40a2648e64c95a782be48260a2ec
Author: PengZheng <howto...@gmail.com>
AuthorDate: Fri Aug 25 17:18:01 2023 +0800

    Fix wrong return type of dmListCommand_execute
---
 bundles/shell/shell/src/dm_shell_list_command.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bundles/shell/shell/src/dm_shell_list_command.c 
b/bundles/shell/shell/src/dm_shell_list_command.c
index cfe625c9..7148c27a 100644
--- a/bundles/shell/shell/src/dm_shell_list_command.c
+++ b/bundles/shell/shell/src/dm_shell_list_command.c
@@ -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;
@@ -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);
 
@@ -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;
 }

Reply via email to