Message ID | 20240223061839.21956-2-zajec5@gmail.com |
---|---|
State | Accepted |
Delegated to: | Rafał Miłecki |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Th0N21G0hz23pm for <incoming@patchwork.ozlabs.org>; Fri, 23 Feb 2024 17:24:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4TOYt2s2tvlu882y8kzfj9Nwg7N83n518juEIqRZPjg=; b=Ad/bl0A1obzgWY 3kRic4JfHlYpyPPXxEZgbSd0+vVQeRu8YQiqD1Nd1QjAZplVylVIxVNtPtvGKgcEpaXRG9NXRrmTQ 3GSEJDx8E7ViKhVIS9gMIHuxEudl3yag6EQiM1pnWpvYArHAcVPITICzW/qPyhFPlrzQhTJioSwMX LwsXDbVpQeAuJhk2oh95KGsg3r5FXMlF0aT1F9mF0nqEsOTryR8sGOBAM4BYy3ZcuReZAxOJRA2+b 4SCE8SyM4VsTWcQmKbVeDQnMhu3gGEbpVbBF2xxztBacaZh8RDw/YqEd3I0DDzmoGUQ5+QwT0+3Gs bRQqo5qYdet/nhgr5mWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdOuX-000000087Md-1TG2; Fri, 23 Feb 2024 06:19:57 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdOtZ-000000087Fx-4BkX for openwrt-devel@lists.openwrt.org; Fri, 23 Feb 2024 06:18:58 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a3e891b5e4eso52783366b.0 for <openwrt-devel@lists.openwrt.org>; Thu, 22 Feb 2024 22:18:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708669127; x=1709273927; darn=lists.openwrt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QFkwybAoDIoEug+LO0irnKFj3NLOQxx0Bdfxqi6etlo=; b=RVVP2nE/AElBV748U2vrR1wZ/KDgr8lxOxr57J3+CbmB33i0XN/uHRi9qajmlJSQeu sJoD48JjCmqO9Vd00zn1qrc0+zKFXK8NfXL9pc6QWwVl5f3yvTscCjnXiyh3b3h++QQB vD8qF1UbjIN94IhMe78E5bJJYho4ft/yliKJ6ExpEXrhh8uWNdTAf9MkQDbeETPhKvKx IhCZ2whG4KgAMxycSrwn2zLOJlZiSX9vFwHPnccExfk8jjMzJsrSMGO9EllUqwQ0N2te stb2hUzc4p44K0F6nV6TXwn1i+ssiMroquwhD0r+LBNz3F/JYGFP7rbAeOAKxtdrxqug JbLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708669127; x=1709273927; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QFkwybAoDIoEug+LO0irnKFj3NLOQxx0Bdfxqi6etlo=; b=lKzQh8FmvsC9yX1HFgPg9fje+qz0dKaSt4KKyC3DLrOIKBbNufczO5b1/7b6FFSafb gKqvxy5hGEgF7AxTNqQkyll0QmoHSwXRAvo6A7W2Fvx3q2M82HNanKooSgCciGjLiBtf GZNVYIzUKXIykhd1uEfqZQVpQI2Dcg9CrUZp8yfggacI0af0LKOgqXerln+WBt/46IsO jlTG8+VBV4eq0CPxHLHmRrcq4o5s/YGBa9oD5LifaFV8hqdI+oh+g3qunHKEkGYTyvHf BJGC0IJBrpeAbOAROc4SkO37BhJER2X+t8vo8bhYnzQCGggmixT5j+EImSs9dFFPTPe6 REIw== X-Gm-Message-State: AOJu0Yy4+6YAp4etDRK0s6P7xgF5zIO029eiyJkCNQW8hXKGa0GcR4CZ ZacuM6qf5sMwtQSGkKspchz6j0wDtn6b+S62i4GNRTUlFXX9d4EoyPemlncC X-Google-Smtp-Source: AGHT+IHrJ69cG+/HWnKqm2zDM/ecAGh7Av3AnTLvlQWPyRhUHWXAX6q/U3FGVqUAlKfL1scc46UNBw== X-Received: by 2002:a17:906:31d9:b0:a3f:b3e0:a986 with SMTP id f25-20020a17090631d900b00a3fb3e0a986mr578414ejf.72.1708669126803; Thu, 22 Feb 2024 22:18:46 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id gs8-20020a1709072d0800b00a3dab486a19sm6522201ejc.118.2024.02.22.22.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 22:18:46 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com> To: openwrt-devel@lists.openwrt.org Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl> Subject: [PATCH firmware-utils 2/4] uimage_sgehdr: use "char" type for header struct strings Date: Fri, 23 Feb 2024 07:18:37 +0100 Message-Id: <20240223061839.21956-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240223061839.21956-1-zajec5@gmail.com> References: <20240223061839.21956-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240222_221854_161939_982D6AE8 X-CRM114-Status: GOOD ( 10.28 ) X-Spam-Score: 0.0 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__From=3A_Rafa=C5=82_Mi=C5=82ecki_This_f?= =?unknown-8bit?q?ixes=3A_src/uimage=5Fsgehdr=2Ec=3A_In?= =?unknown-8bit?q?_function_=E2=80=98main=E2=80=99=3A_src/uimage=5Fsgehdr=2Ec?= =?unknown-8bit?q?=3A152=3A10=3A_warning=3A_pointer_targets?= =?unknown-8bit?q?_in_passing_argument_1_of_=E2=80=98strncpy=E2=80=99_differ_?= =?unknown-8bit?q?in_signedness_=5B-Wpointer-sign=5D?= =?unknown-8bit?b?IHN0cm5jcHkoaW1naC0+c2dlaWhfcCwgbW8gWy4uLl0g?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=280=2E0_points=2C_5=2E0_req?= =?unknown-8bit?q?uired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from_author=27s?= =?unknown-8bit?q?_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_envelope-from_domain?= =?unknown-8bit?q?_0=2E0_FREEMAIL=5FFROM__________Sender_email_is_commonly_ab?= =?unknown-8bit?q?used_enduser_mail_provider?= =?unknown-8bit?q?_=5Bzajec5=28at=29gmail=2Ecom=5D?= =?unknown-8bit?q?_0=2E2_FREEMAIL=5FENVFROM=5FEND=5FDIGIT_Envelope-from_freem?= =?unknown-8bit?q?ail_username_ends_in?= =?unknown-8bit?q?_digit?= =?unknown-8bit?q?_=5Bzajec5=28at=29gmail=2Ecom=5D?= =?unknown-8bit?q?_-0=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C_no?= =?unknown-8bit?q?_trust?= =?unknown-8bit?b?IFsyYTAwOjE0NTA6NDg2NDoyMDowOjA6MDo2MmEgbGlzdGVkIGluXQ==?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_T=5FSCC=5FBODY=5FTEXT=5FLINE___No_description_avail?= =?unknown-8bit?q?able=2E?= X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
[firmware-utils,1/4] srec2bin: drop unused "dum" variable
|
expand
|
diff --git a/src/uimage_sgehdr.c b/src/uimage_sgehdr.c index 28143a8..6d62c04 100644 --- a/src/uimage_sgehdr.c +++ b/src/uimage_sgehdr.c @@ -40,9 +40,9 @@ struct image_header { uint8_t ih_type; /* Image Type */ uint8_t ih_comp; /* Compression Type */ uint8_t ih_name[IH_NMLEN]; /* Image Name */ - uint8_t sgeih_p[SGE_PRODUCTLEN]; /* sge_Product */ - uint8_t sgeih_sv[SGE_VERSIONLEN]; /* sge Software Version */ - uint8_t sgeih_hv[SGE_VERSIONLEN]; /* sge Hardware Version */ + char sgeih_p[SGE_PRODUCTLEN]; /* sge_Product */ + char sgeih_sv[SGE_VERSIONLEN]; /* sge Software Version */ + char sgeih_hv[SGE_VERSIONLEN]; /* sge Hardware Version */ };