Explorar o código

Rather use unit64_t than ino_t which causes trouble on win32.

This fixes https://github.com/owncloud/mirall/issues/1239
Klaas Freitag %!s(int64=12) %!d(string=hai) anos
pai
achega
8fd921f796
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/csync_statedb.c
  2. 1 1
      src/csync_statedb.h

+ 1 - 1
src/csync_statedb.c

@@ -476,7 +476,7 @@ csync_file_stat_t *csync_statedb_get_stat_by_file_id( sqlite3 *db,
 
 /* caller must free the memory */
 csync_file_stat_t *csync_statedb_get_stat_by_inode(sqlite3 *db,
-                                                   ino_t inode) {
+                                                   uint64_t inode) {
   csync_file_stat_t *st = NULL;
   c_strlist_t *result = NULL;
   char *stmt = NULL;

+ 1 - 1
src/csync_statedb.h

@@ -58,7 +58,7 @@ int csync_statedb_close(const char *statedb, sqlite3 *db, int jwritten);
 
 csync_file_stat_t *csync_statedb_get_stat_by_hash(sqlite3 *db, uint64_t phash);
 
-csync_file_stat_t *csync_statedb_get_stat_by_inode(sqlite3 *db, ino_t inode);
+csync_file_stat_t *csync_statedb_get_stat_by_inode(sqlite3 *db, uint64_t inode);
 
 csync_file_stat_t *csync_statedb_get_stat_by_file_id( sqlite3 *db,
                                                      const char *file_id );