diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-08 17:50:45 +0200 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-29 15:48:00 +0200 |
commit | 1b890bd11b0a856bd2e4cd2377db8c6f3f656d3d (patch) | |
tree | cebe5d7a64f6a8a7bcb128ac62ecfd2aab973830 /src | |
parent | a3ea1452906989994d8d27830df754c8117edcd7 (diff) |
use off_t instead of size_t for file size
stat() st_size datatype is off_t which is for file size, use off_t
instead of size_t for correctness.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ struct tip_client { /* for file serving. */ const char *uri; const char *path; - size_t size; + off_t size; int fd; off_t offset; |