[Pkg-owncloud-commits] [owncloud-client] 261/498: Remove definition of TDIR, its not longer in use.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:56 UTC 2015


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 599ee905003d114bcc53f6b58cb42e9a7c286e1a
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jun 19 16:09:23 2015 +0200

    Remove definition of TDIR, its not longer in use.
    
    The directory traverse handle struct is platform dependant now.
---
 csync/src/std/c_private.h       | 2 --
 csync/src/vio/csync_vio_local.c | 8 +++++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/csync/src/std/c_private.h b/csync/src/std/c_private.h
index 161d75f..10cdf23 100644
--- a/csync/src/std/c_private.h
+++ b/csync/src/std/c_private.h
@@ -110,7 +110,6 @@ typedef struct stat csync_stat_t;
 typedef  wchar_t         mbchar_t;
 #define _topen           _wopen
 #define _tdirent         _wdirent
-#define _TDIR            _WDIR
 #define _topendir        _wopendir
 #define _tclosedir       _wclosedir
 #define _treaddir        _wreaddir
@@ -130,7 +129,6 @@ typedef  wchar_t         mbchar_t;
 typedef char           mbchar_t;
 #define _tdirent       dirent
 #define _topen         open
-#define _TDIR          DIR
 #define _topendir      opendir
 #define _tclosedir     closedir
 #define _treaddir      readdir
diff --git a/csync/src/vio/csync_vio_local.c b/csync/src/vio/csync_vio_local.c
index 7ec7a2c..07261cc 100644
--- a/csync/src/vio/csync_vio_local.c
+++ b/csync/src/vio/csync_vio_local.c
@@ -44,7 +44,13 @@
  */
 
 typedef struct dhandle_s {
-  _TDIR *dh;
+#if defined _WIN32
+  WIN32_FIND_DATA ffd;
+  HANDLE hFind;
+  int firstFind;
+#else
+  DIR *dh;
+#endif
   char *path;
 } dhandle_t;
 

-- 
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