Adding curly braces to fix the code.
Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
switch (option->type) {
case OT_STR:
switch (option->type) {
case OT_STR:
- if (set_option_str(filename, line, option, p) < 0)
+ if (set_option_str(filename, line, option, p) < 0) {
fclose(configfd);
return (-1);
fclose(configfd);
return (-1);
- if (set_option_int(filename, line, option, p) < 0)
+ if (set_option_int(filename, line, option, p) < 0) {
fclose(configfd);
return (-1);
fclose(configfd);
return (-1);
- if (set_option_srv(filename, line, option, p) < 0)
+ if (set_option_srv(filename, line, option, p) < 0) {
fclose(configfd);
return (-1);
fclose(configfd);
return (-1);
- if (set_option_auo(filename, line, option, p) < 0)
+ if (set_option_auo(filename, line, option, p) < 0) {
fclose(configfd);
return (-1);
fclose(configfd);
return (-1);
break;
default:
fatal("rc_read_config: impossible case branch!");
break;
default:
fatal("rc_read_config: impossible case branch!");