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

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