[Pkg-owncloud-commits] [owncloud-client] 87/103: Fix compiler warnings, and be less spammy in the log

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Apr 30 18:09:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 0bffdfb25679b656c21c6cada182c45943de4e2c
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Apr 29 12:30:13 2014 +0200

    Fix compiler warnings, and be less spammy in the log
---
 csync/src/csync_util.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/csync/src/csync_util.c b/csync/src/csync_util.c
index 7d02adb..a79d925 100644
--- a/csync/src/csync_util.c
+++ b/csync/src/csync_util.c
@@ -183,13 +183,14 @@ csync_vio_file_stat_t *csync_vio_convert_file_stat(csync_file_stat_t *st) {
 
 bool (*csync_file_locked_or_open_ext) (const char*) = 0; // filled in by library user
 bool csync_file_locked_or_open( const char *dir, const char *fname) {
-    CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "csync_file_locked_or_open %p %s/%s", csync_file_locked_or_open_ext, dir, fname);
+    char *tmp_uri = NULL;
+    bool ret;
     if (!csync_file_locked_or_open_ext) {
         return false;
     }
-    char *tmp_uri = NULL;
     asprintf(&tmp_uri, "%s/%s", dir, fname);
-    bool ret = csync_file_locked_or_open_ext(tmp_uri);
+    CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "csync_file_locked_or_open %s", tmp_uri);
+    ret = csync_file_locked_or_open_ext(tmp_uri);
     SAFE_FREE(tmp_uri);
     return ret;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list