teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame 0003-Declare-signCmd-static.patch

Panu Matilainen c7a072
From 2029533d7878a58874cda061d13c6188f4b3aed1 Mon Sep 17 00:00:00 2001
Panu Matilainen c7a072
Message-ID: <2029533d7878a58874cda061d13c6188f4b3aed1.1728896192.git.pmatilai@redhat.com>
Panu Matilainen c7a072
In-Reply-To: <3b0a150af79668052bf5842b68341adbde016005.1728896192.git.pmatilai@redhat.com>
Panu Matilainen c7a072
References: <3b0a150af79668052bf5842b68341adbde016005.1728896192.git.pmatilai@redhat.com>
Panu Matilainen c7a072
From: Michal Domonkos <mdomonko@redhat.com>
Panu Matilainen c7a072
Date: Mon, 9 Sep 2024 15:19:52 +0200
Panu Matilainen c7a072
Subject: [PATCH 3/3] Declare signCmd() static
Panu Matilainen c7a072
Panu Matilainen c7a072
Commit 2c9ad2bbc1d00010880076cd5c73e97ffcb946ed added this new helper
Panu Matilainen c7a072
function for internal use and depite a missing declaration, the compiler
Panu Matilainen c7a072
defaulting to WITH_CXX=ON on master chugged along just fine... only
Panu Matilainen c7a072
until porting the same commit to a C-only branch (hello rpm-4.20.x)
Panu Matilainen c7a072
where it now produces a warning, oops.
Panu Matilainen c7a072
Panu Matilainen c7a072
(cherry picked from commit a7784eccd9de674e97fc9577434334060b3abd23)
Panu Matilainen c7a072
---
Panu Matilainen c7a072
 sign/rpmgensig.c | 2 +-
Panu Matilainen c7a072
 1 file changed, 1 insertion(+), 1 deletion(-)
Panu Matilainen c7a072
Panu Matilainen c7a072
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
Panu Matilainen c7a072
index fb7368e14..d7d58fd4f 100644
Panu Matilainen c7a072
--- a/sign/rpmgensig.c
Panu Matilainen c7a072
+++ b/sign/rpmgensig.c
Panu Matilainen c7a072
@@ -188,7 +188,7 @@ exit:
Panu Matilainen c7a072
     return sigtd;
Panu Matilainen c7a072
 }
Panu Matilainen c7a072
 
Panu Matilainen c7a072
-char ** signCmd(const char *sigfile)
Panu Matilainen c7a072
+static char ** signCmd(const char *sigfile)
Panu Matilainen c7a072
 {
Panu Matilainen c7a072
     int argc = 0;
Panu Matilainen c7a072
     char **argv = NULL;
Panu Matilainen c7a072
-- 
Panu Matilainen c7a072
2.47.0
Panu Matilainen c7a072