Skip to content

Commit 89fc3b6

Browse files
Günther Deschnersimo5
authored andcommitted
Make gp_boolean_is_true non-static.
Signed-off-by: Günther Deschner <[email protected]> Reviewed-by: Simo Sorce <[email protected]>
1 parent afdd055 commit 89fc3b6

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

proxy/src/gp_common.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@ bool gp_same(const char *a, const char *b)
3535

3636
return false;
3737
}
38+
39+
bool gp_boolean_is_true(const char *s)
40+
{
41+
if (strcasecmp(s, "1") == 0 ||
42+
strcasecmp(s, "on") == 0 ||
43+
strcasecmp(s, "true") == 0 ||
44+
strcasecmp(s, "yes") == 0) {
45+
return true;
46+
}
47+
48+
return false;
49+
}

proxy/src/gp_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#define MAX_RPC_SIZE 1024*1024
6767

6868
bool gp_same(const char *a, const char *b);
69+
bool gp_boolean_is_true(const char *s);
6970

7071
#include "rpcgen/gss_proxy.h"
7172

proxy/src/gp_config.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,6 @@ static void gp_service_free(struct gp_service *svc)
5656
memset(svc, 0, sizeof(struct gp_service));
5757
}
5858

59-
static bool gp_boolean_is_true(const char *s)
60-
{
61-
if (strcasecmp(s, "1") == 0 ||
62-
strcasecmp(s, "on") == 0 ||
63-
strcasecmp(s, "true") == 0 ||
64-
strcasecmp(s, "yes") == 0) {
65-
return true;
66-
}
67-
68-
return false;
69-
}
70-
7159
static int get_krb5_mech_cfg(struct gp_service *svc,
7260
struct gp_ini_context *ctx,
7361
const char *secname)

0 commit comments

Comments
 (0)