加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-an-enum-int-type-mismatch-in-rpmfiArchiveReadToF.patch 975 Bytes
一键复制 编辑 原始数据 按行查看 历史
hugel 提交于 2024-06-03 09:15 . Backport some patches from upstream
From 6c01f4c84f768b6c6b247a11106bf51b40015e66 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Mon, 18 Mar 2024 09:56:51 +0200
Subject: [PATCH] Fix an enum/int type mismatch in rpmfiArchiveReadToFilePsm()
rpmfiDigestAlgo() hysterically returns a signed int (and that's what
really ought to be changed) but lets at least make all these uses
consistent.
Conflict:NA
Reference:https://github.com/rpm-software-management/rpm/commit/6c01f4c84f768b6c6b247a11106bf51b40015e66
---
lib/rpmfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rpmfi.c b/lib/rpmfi.c
index cfb388b4c..db1460711 100644
--- a/lib/rpmfi.c
+++ b/lib/rpmfi.c
@@ -2384,7 +2384,7 @@ int rpmfiArchiveReadToFilePsm(rpmfi fi, FD_t fd, int nodigest, rpmpsm psm)
rpm_loff_t left = rpmfiFSize(fi);
const unsigned char * fidigest = NULL;
- rpmHashAlgo digestalgo = 0;
+ int digestalgo = 0;
int rc = 0;
char buf[BUFSIZ*4];
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化