Blame SOURCES/0002-library-make-_adcli_strv_has_ex-public.patch

341f9a
From e1b45e66bc185f5db4c252e1f3fb1b4400b4538e Mon Sep 17 00:00:00 2001
341f9a
From: Sumit Bose <sbose@redhat.com>
341f9a
Date: Fri, 22 Mar 2019 10:36:38 +0100
341f9a
Subject: [PATCH 2/4] library: make _adcli_strv_has_ex public
341f9a
341f9a
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1630187
341f9a
---
341f9a
 library/adprivate.h | 4 ++++
341f9a
 library/adutil.c    | 2 +-
341f9a
 2 files changed, 5 insertions(+), 1 deletion(-)
341f9a
341f9a
diff --git a/library/adprivate.h b/library/adprivate.h
341f9a
index 0806430..55e6234 100644
341f9a
--- a/library/adprivate.h
341f9a
+++ b/library/adprivate.h
341f9a
@@ -125,6 +125,10 @@ void           _adcli_strv_free              (char **strv);
341f9a
 int            _adcli_strv_has               (char **strv,
341f9a
                                               const char *str);
341f9a
 
341f9a
+int            _adcli_strv_has_ex            (char **strv,
341f9a
+                                              const char *str,
341f9a
+                                              int (* compare) (const char *match, const char*value));
341f9a
+
341f9a
 char **        _adcli_strv_dup               (char **strv) GNUC_WARN_UNUSED;
341f9a
 
341f9a
 char *         _adcli_strv_join              (char **strv,
341f9a
diff --git a/library/adutil.c b/library/adutil.c
341f9a
index 76ea158..9b0c47f 100644
341f9a
--- a/library/adutil.c
341f9a
+++ b/library/adutil.c
341f9a
@@ -221,7 +221,7 @@ _adcli_strv_add (char **strv,
341f9a
 	return seq_push (strv, length, string);
341f9a
 }
341f9a
 
341f9a
-static int
341f9a
+int
341f9a
 _adcli_strv_has_ex (char **strv,
341f9a
                     const char *str,
341f9a
                     int (* compare) (const char *match, const char*value))
341f9a
-- 
341f9a
2.20.1
341f9a