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

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