This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=9eba8623b3b22ad9db3f737d81ce5ff2fa0b7245 commit 9eba8623b3b22ad9db3f737d81ce5ff2fa0b7245 (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Tue Dec 20 19:00:34 2022 +0100 libdpkg: Use correct return type in meminfo functions definitions Warned-by: gcc-13 -Wenum-int-mismatch --- lib/dpkg/meminfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dpkg/meminfo.c b/lib/dpkg/meminfo.c index ca410a044..998f65c7e 100644 --- a/lib/dpkg/meminfo.c +++ b/lib/dpkg/meminfo.c @@ -78,7 +78,7 @@ meminfo_sum_fields(const struct meminfo_field *fields, const size_t nfields) return sum; } -int +enum meminfo_error_code meminfo_get_available_from_file(const char *filename, uint64_t *val) { char buf[4096]; @@ -157,7 +157,7 @@ meminfo_get_available_from_file(const char *filename, uint64_t *val) return MEMINFO_OK; } -int +enum meminfo_error_code meminfo_get_available(uint64_t *val) { #ifdef __linux__ -- Dpkg.Org's dpkg

