You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by bp...@apache.org on 2019/09/02 20:22:01 UTC

[celix] branch develop updated (888ac09 -> 1b89094)

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

bpetri pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git.


 discard 888ac09  add return value check
     new 1b89094  add return value check

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (888ac09)
            \
             N -- N -- N   refs/heads/develop (1b89094)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


[celix] 01/01: add return value check

Posted by bp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bpetri pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 1b8909435f03088f6f73f3ecd29765a49640e7c2
Author: Bjoern Petri <bp...@apache.org>
AuthorDate: Mon Sep 2 22:14:54 2019 +0200

    add return value check
---
 bundles/http_admin/http_admin/src/http_admin.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bundles/http_admin/http_admin/src/http_admin.c b/bundles/http_admin/http_admin/src/http_admin.c
index 59eda4b..84a7b1a 100755
--- a/bundles/http_admin/http_admin/src/http_admin.c
+++ b/bundles/http_admin/http_admin/src/http_admin.c
@@ -123,7 +123,11 @@ void httpAdmin_destroy(http_admin_manager_t *admin) {
     unsigned int size = arrayList_size(admin->aliasList);
     for (unsigned int i = (size - 1); i < size; i--) {
         http_alias_t *alias = arrayList_get(admin->aliasList, i);
-        remove(alias->alias_path); //Delete alias in cache directory
+
+        //Delete alias in cache directory
+        if (remove(alias->alias_path) < 0)
+            fprintf(stdout, "remove of %s failed\n", alias->alias_path);
+
         free(alias->url);
         free(alias->alias_path);
         free(alias);