1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 20:26:46 +02:00

use 64-bit off_t for file sizes

This commit is contained in:
Jfreegman
2014-09-24 14:23:08 -04:00
parent 893e88294b
commit a432d733d7
7 changed files with 9 additions and 9 deletions

View File

@ -313,12 +313,12 @@ bool file_exists(const char *path)
}
/* returns file size or -1 on error */
uint64_t file_size(const char *path)
off_t file_size(const char *path)
{
struct stat st;
if (stat(path, &st) == -1)
return -1;
return (uint64_t) st.st_size;
return st.st_size;
}