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

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