aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvocache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llvocache.cpp b/linden/indra/newview/llvocache.cpp
index 39ee63f..45b7782 100644
--- a/linden/indra/newview/llvocache.cpp
+++ b/linden/indra/newview/llvocache.cpp
@@ -63,7 +63,7 @@ LLVOCacheEntry::LLVOCacheEntry()
63} 63}
64 64
65 65
66static inline void checkedRead(FILE *fp, void *data, size_t nbytes) 66static inline void checkedRead(LLFILE *fp, void *data, size_t nbytes)
67{ 67{
68 if (fread(data, 1, nbytes, fp) != nbytes) 68 if (fread(data, 1, nbytes, fp) != nbytes)
69 { 69 {
@@ -72,7 +72,7 @@ static inline void checkedRead(FILE *fp, void *data, size_t nbytes)
72 } 72 }
73} 73}
74 74
75LLVOCacheEntry::LLVOCacheEntry(FILE *fp) 75LLVOCacheEntry::LLVOCacheEntry(LLFILE *fp)
76{ 76{
77 S32 size; 77 S32 size;
78 checkedRead(fp, &mLocalID, sizeof(U32)); 78 checkedRead(fp, &mLocalID, sizeof(U32));
@@ -153,7 +153,7 @@ void LLVOCacheEntry::dump() const
153 << llendl; 153 << llendl;
154} 154}
155 155
156static inline void checkedWrite(FILE *fp, const void *data, size_t nbytes) 156static inline void checkedWrite(LLFILE *fp, const void *data, size_t nbytes)
157{ 157{
158 if (fwrite(data, 1, nbytes, fp) != nbytes) 158 if (fwrite(data, 1, nbytes, fp) != nbytes)
159 { 159 {
@@ -161,7 +161,7 @@ static inline void checkedWrite(FILE *fp, const void *data, size_t nbytes)
161 } 161 }
162} 162}
163 163
164void LLVOCacheEntry::writeToFile(FILE *fp) const 164void LLVOCacheEntry::writeToFile(LLFILE *fp) const
165{ 165{
166 checkedWrite(fp, &mLocalID, sizeof(U32)); 166 checkedWrite(fp, &mLocalID, sizeof(U32));
167 checkedWrite(fp, &mCRC, sizeof(U32)); 167 checkedWrite(fp, &mCRC, sizeof(U32));