diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-02-06 17:27:02 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-02-06 17:27:02 +0100 |
commit | fe476404b4ce134c946d1754d2652461340c1186 (patch) | |
tree | 789f9f4fdd656b861e607ebc5ffd7e5c5fbb8deb /src/metainfo.c | |
parent | Merge branch 'master' of ssh://ni.sijanec.eu/var/lib/git/sijanec/travnik (diff) | |
download | travnik-fe476404b4ce134c946d1754d2652461340c1186.tar travnik-fe476404b4ce134c946d1754d2652461340c1186.tar.gz travnik-fe476404b4ce134c946d1754d2652461340c1186.tar.bz2 travnik-fe476404b4ce134c946d1754d2652461340c1186.tar.lz travnik-fe476404b4ce134c946d1754d2652461340c1186.tar.xz travnik-fe476404b4ce134c946d1754d2652461340c1186.tar.zst travnik-fe476404b4ce134c946d1754d2652461340c1186.zip |
Diffstat (limited to 'src/metainfo.c')
-rw-r--r-- | src/metainfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/metainfo.c b/src/metainfo.c index 680505a..72fc2ec 100644 --- a/src/metainfo.c +++ b/src/metainfo.c @@ -117,6 +117,7 @@ tail_recursion: } if (!path->next) { struct inode * file = calloc(1, sizeof(struct inode)); + file->length = size; file->parent = prnt; file->name = path->value; path->value = NULL; @@ -143,7 +144,7 @@ tail_recursion: * @return sum length of the filetree */ -static int filetree (struct inode ** root, struct bencoding * dict, unsigned * cunt, struct inode * prnt) { +static inode_length_t filetree (struct inode ** root, struct bencoding * dict, unsigned * cunt, struct inode * prnt) { if (!dict) return 0; assert(!*root); |