summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-08 17:50:45 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-29 15:48:00 +0200
commit1b890bd11b0a856bd2e4cd2377db8c6f3f656d3d (patch)
treecebe5d7a64f6a8a7bcb128ac62ecfd2aab973830
parenta3ea1452906989994d8d27830df754c8117edcd7 (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.
-rw-r--r--src/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.h b/src/core.h
index d39eda4..c1ce388 100644
--- a/src/core.h
+++ b/src/core.h
@@ -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;