From edf0ecad46a67f8638845c359ac4dcf25d9476dd Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 5 Jul 2005 06:53:11 +0000 Subject: [PATCH] made FS_WriteFile's len parameter size_t to fix some warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5491 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 2 +- fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs.c b/fs.c index 930a694a..ce6ec632 100644 --- a/fs.c +++ b/fs.c @@ -1934,7 +1934,7 @@ FS_WriteFile The filename will be prefixed by the current game directory ============ */ -qboolean FS_WriteFile (const char *filename, void *data, int len) +qboolean FS_WriteFile (const char *filename, void *data, size_t len) { qfile_t *file; diff --git a/fs.h b/fs.h index e44a1e89..878d121c 100644 --- a/fs.h +++ b/fs.h @@ -70,7 +70,7 @@ fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet); void FS_FreeSearch(fssearch_t *search); qbyte *FS_LoadFile (const char *path, mempool_t *pool, qboolean quiet); -qboolean FS_WriteFile (const char *filename, void *data, int len); +qboolean FS_WriteFile (const char *filename, void *data, size_t len); // ------ Other functions ------ // -- 2.39.2