celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject celix git commit: CELIX-295: Revert to getenv instead of getenv_secure for portability -> undefined warning
Date Wed, 18 Nov 2015 15:12:01 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 5d1579aff -> f2126e877


CELIX-295: Revert to getenv instead of getenv_secure for portability -> undefined warning


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

Branch: refs/heads/develop
Commit: f2126e87717fbdfdbd678b2a385c16fc688854eb
Parents: 5d1579a
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Wed Nov 18 16:10:40 2015 +0100
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Wed Nov 18 16:10:40 2015 +0100

----------------------------------------------------------------------
 dependency_manager/private/src/dm_shell_list_command.c | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/f2126e87/dependency_manager/private/src/dm_shell_list_command.c
----------------------------------------------------------------------
diff --git a/dependency_manager/private/src/dm_shell_list_command.c b/dependency_manager/private/src/dm_shell_list_command.c
index e174061..fd7c5d9 100644
--- a/dependency_manager/private/src/dm_shell_list_command.c
+++ b/dependency_manager/private/src/dm_shell_list_command.c
@@ -43,11 +43,7 @@ void dmListCommand_execute(bundle_context_pt context, char * line, FILE
*out, FI
     array_list_pt servRefs = NULL;
     int i;
     bundleContext_getServiceReferences(context, DM_INFO_SERVICE_NAME ,NULL, &servRefs);
-#if defined(BSD) || defined(__APPLE__)
     char *term = getenv("TERM");
-#else
-    char *term = secure_getenv("TERM");
-#endif
     bool colors = false;
     if (strcmp("xterm-256color", term) == 0) {
         colors = true;


Mime
View raw message