summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_common.c
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-04-26 14:16:50 +0200
committerGünther Deschner <gdeschner@redhat.com>2013-04-26 14:48:05 +0200
commit770be8b5e2a57a94503d302600ae4229568c9f90 (patch)
treee5871656f7e9da4824cb42f53cf0d629fdf2668d /proxy/src/gp_common.c
parentc3573df1865ad69ccdd89fe97ecf86d006f569b3 (diff)
downloadgss-proxy-770be8b5e2a57a94503d302600ae4229568c9f90.tar.gz
gss-proxy-770be8b5e2a57a94503d302600ae4229568c9f90.tar.xz
gss-proxy-770be8b5e2a57a94503d302600ae4229568c9f90.zip
Make gp_boolean_is_true non-static.
Signed-off-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src/gp_common.c')
-rw-r--r--proxy/src/gp_common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/proxy/src/gp_common.c b/proxy/src/gp_common.c
index f4ebc5e..19253dc 100644
--- a/proxy/src/gp_common.c
+++ b/proxy/src/gp_common.c
@@ -35,3 +35,15 @@ bool gp_same(const char *a, const char *b)
return false;
}
+
+bool gp_boolean_is_true(const char *s)
+{
+ if (strcasecmp(s, "1") == 0 ||
+ strcasecmp(s, "on") == 0 ||
+ strcasecmp(s, "true") == 0 ||
+ strcasecmp(s, "yes") == 0) {
+ return true;
+ }
+
+ return false;
+}