@@ -56,7 +56,7 @@ static void gp_service_free(struct gp_service *svc)
56
56
memset (svc , 0 , sizeof (struct gp_service ));
57
57
}
58
58
59
- static bool option_is_set (const char * s )
59
+ static bool gp_boolean_is_true (const char * s )
60
60
{
61
61
if (strcasecmp (s , "1" ) == 0 ||
62
62
strcasecmp (s , "on" ) == 0 ||
@@ -187,14 +187,14 @@ static int load_services(struct gp_config *cfg, struct gp_ini_context *ctx)
187
187
188
188
ret = gp_config_get_string (ctx , secname , "trusted" , & value );
189
189
if (ret == 0 ) {
190
- if (option_is_set (value )) {
190
+ if (gp_boolean_is_true (value )) {
191
191
cfg -> svcs [n ]-> trusted = true;
192
192
}
193
193
}
194
194
195
195
ret = gp_config_get_string (ctx , secname , "kernel_nfsd" , & value );
196
196
if (ret == 0 ) {
197
- if (option_is_set (value )) {
197
+ if (gp_boolean_is_true (value )) {
198
198
cfg -> svcs [n ]-> kernel_nfsd = true;
199
199
}
200
200
}
@@ -309,7 +309,7 @@ int load_config(struct gp_config *cfg)
309
309
310
310
ret = gp_config_get_string (ctx , "gssproxy" , "debug" , & tmpstr );
311
311
if (ret == 0 ) {
312
- if (option_is_set (tmpstr )) {
312
+ if (gp_boolean_is_true (tmpstr )) {
313
313
gp_debug_enable ();
314
314
}
315
315
} else if (ret != ENOENT ) {
0 commit comments