diff options
author | Günther Deschner <gdeschner@redhat.com> | 2013-04-26 14:13:23 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2013-04-26 14:47:47 +0200 |
commit | c3573df1865ad69ccdd89fe97ecf86d006f569b3 (patch) | |
tree | 008b5807be60ed6bd9bc1da8b6e2579318ce227b | |
parent | de0fcf955e49e8e8211d753f9064f9587217c535 (diff) | |
download | gss-proxy-c3573df1865ad69ccdd89fe97ecf86d006f569b3.tar.gz gss-proxy-c3573df1865ad69ccdd89fe97ecf86d006f569b3.tar.xz gss-proxy-c3573df1865ad69ccdd89fe97ecf86d006f569b3.zip |
Rename option_is_set to gp_boolean_is_true.
Signed-off-by: Günther Deschner <gdeschner@redhat.com>
-rw-r--r-- | proxy/src/gp_config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c index c117f54..92dcf24 100644 --- a/proxy/src/gp_config.c +++ b/proxy/src/gp_config.c @@ -56,7 +56,7 @@ static void gp_service_free(struct gp_service *svc) memset(svc, 0, sizeof(struct gp_service)); } -static bool option_is_set(const char *s) +static bool gp_boolean_is_true(const char *s) { if (strcasecmp(s, "1") == 0 || strcasecmp(s, "on") == 0 || @@ -187,14 +187,14 @@ static int load_services(struct gp_config *cfg, struct gp_ini_context *ctx) ret = gp_config_get_string(ctx, secname, "trusted", &value); if (ret == 0) { - if (option_is_set(value)) { + if (gp_boolean_is_true(value)) { cfg->svcs[n]->trusted = true; } } ret = gp_config_get_string(ctx, secname, "kernel_nfsd", &value); if (ret == 0) { - if (option_is_set(value)) { + if (gp_boolean_is_true(value)) { cfg->svcs[n]->kernel_nfsd = true; } } @@ -309,7 +309,7 @@ int load_config(struct gp_config *cfg) ret = gp_config_get_string(ctx, "gssproxy", "debug", &tmpstr); if (ret == 0) { - if (option_is_set(tmpstr)) { + if (gp_boolean_is_true(tmpstr)) { gp_debug_enable(); } } else if (ret != ENOENT) { |