]> git.ipfire.org Git - thirdparty/libarchive.git/commit
rpm: Fix Visual Studio compiler warnings (#2181)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Mon, 13 May 2024 06:46:04 +0000 (08:46 +0200)
committerGitHub <noreply@github.com>
Mon, 13 May 2024 06:46:04 +0000 (08:46 +0200)
commit1d6e5d117aaa38f06e778bab51aaeb423d05042d
tree9bbb5cd153e75f581b83a32ff10c66c9d3b1373f
parent826c0afe1954147bd239ab0a6d6b0f02ea395dde
rpm: Fix Visual Studio compiler warnings (#2181)

Adjust type of variables for their specific use case
Add a new inline function to unify casting (and clarify code blocks)
Use definition to explain magic number (and reduce casts)
Use `hpos` instead of magic number to highlight that additional bytes
will be parsed
libarchive/archive_read_support_filter_rpm.c