From 1b890bd11b0a856bd2e4cd2377db8c6f3f656d3d Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Wed, 8 Sep 2021 17:50:45 +0200 Subject: 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. --- src/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.h') 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; -- cgit v1.2.3-18-g5258