diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-08-30 23:09:39 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-08-30 23:09:39 -0700 |
commit | c50ea916b0e56520948804b67fc7df57bb490575 (patch) | |
tree | 4f1f48736d76950b8b3eeeeba58604c61d7b036d | |
parent | 76abb77f26c43d069919f80e960c71c2242fb5c2 (diff) |
Use intptr_t instead of off_t inside FcCache structure.
This avoids OS-dependencies in the cache file structure.
-rw-r--r-- | src/fcint.h | 2 | ||||
-rw-r--r-- | src/fcserialize.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/fcint.h b/src/fcint.h index 651ca66..1b92d75 100644 --- a/src/fcint.h +++ b/src/fcint.h @@ -308,7 +308,7 @@ typedef struct _FcStrBuf { typedef struct _FcCache { int magic; /* FC_CACHE_MAGIC */ - off_t size; /* size of file */ + intptr_t size; /* size of file */ intptr_t dir; /* offset to dir name */ intptr_t dirs; /* offset to subdirs */ int dirs_count; /* number of subdir strings */ diff --git a/src/fcserialize.c b/src/fcserialize.c index 5a4b4af..a8c10b8 100644 --- a/src/fcserialize.c +++ b/src/fcserialize.c @@ -26,7 +26,6 @@ typedef union _FcAlign { double d; int i; intptr_t ip; - off_t o; FcBool b; void *p; } FcAlign; |