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

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