Projects
Eulaceura:Factory
digest-list-tools
_service:obs_scm:fix-the-compilation-error.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:fix-the-compilation-error.patch of Package digest-list-tools
From b2bc3931f2dee4c5ef81fe3f6b5bdbca1ed4a6bf Mon Sep 17 00:00:00 2001 From: zhoushuiqing <zhoushuiqing2@huawei.com> Date: Wed, 26 Jul 2023 11:44:14 +0800 Subject: [PATCH] fix the compilation error caused by the -Werror=address compilation option in gcc. --- parsers/compact_tlv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsers/compact_tlv.c b/parsers/compact_tlv.c index 3cd3b95..6b8ca99 100644 --- a/parsers/compact_tlv.c +++ b/parsers/compact_tlv.c @@ -115,7 +115,7 @@ int parser(int fd, struct list_head *head, loff_t size, void *buf, modifiers = hdr.modifiers; for (j = 0; j < 4; j++) { - if (!items_data(ID_INODE_UID + j)) + if (items_data(ID_INODE_UID + j) == NULL) continue; i_meta[j] = @@ -152,7 +152,7 @@ int parser(int fd, struct list_head *head, loff_t size, void *buf, break; case PARSER_OP_ADD_META_DIGEST: case PARSER_OP_ADD_META_DIGEST_TO_HTABLE: - if (!items_data(ID_EVM_DIGEST)) { + if (items_data(ID_EVM_DIGEST) == NULL) { ret = calc_metadata_digest(fd, head, hdr.type, modifiers, hdr.algo, items_data(ID_DIGEST), -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2