Skip to content

Commit afdd055

Browse files
Günther Deschnersimo5
authored andcommitted
Rename option_is_set to gp_boolean_is_true.
Signed-off-by: Günther Deschner <[email protected]> Reviewed-by: Simo Sorce <[email protected]>
1 parent 4312c6a commit afdd055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proxy/src/gp_config.c

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

59-
static bool option_is_set(const char *s)
59+
static bool gp_boolean_is_true(const char *s)
6060
{
6161
if (strcasecmp(s, "1") == 0 ||
6262
strcasecmp(s, "on") == 0 ||
@@ -187,14 +187,14 @@ static int load_services(struct gp_config *cfg, struct gp_ini_context *ctx)
187187

188188
ret = gp_config_get_string(ctx, secname, "trusted", &value);
189189
if (ret == 0) {
190-
if (option_is_set(value)) {
190+
if (gp_boolean_is_true(value)) {
191191
cfg->svcs[n]->trusted = true;
192192
}
193193
}
194194

195195
ret = gp_config_get_string(ctx, secname, "kernel_nfsd", &value);
196196
if (ret == 0) {
197-
if (option_is_set(value)) {
197+
if (gp_boolean_is_true(value)) {
198198
cfg->svcs[n]->kernel_nfsd = true;
199199
}
200200
}
@@ -309,7 +309,7 @@ int load_config(struct gp_config *cfg)
309309

310310
ret = gp_config_get_string(ctx, "gssproxy", "debug", &tmpstr);
311311
if (ret == 0) {
312-
if (option_is_set(tmpstr)) {
312+
if (gp_boolean_is_true(tmpstr)) {
313313
gp_debug_enable();
314314
}
315315
} else if (ret != ENOENT) {

0 commit comments

Comments
 (0)