}
}
- if (ferror(file)) {
+ if (ferror(file))
ohshite(_("read error in configuration file `%.255s'"), fn);
- }
- if (fclose(file)) {
+ if (fclose(file))
ohshite(_("error closing configuration file `%.255s'"), fn);
- }
}
void loadfilters(void) {
char *dirname = CONFIGDIR "/filters.d";
DIR *dir = opendir(dirname);
if (!dir) {
- if (errno == ENOENT) {
+ if (errno == ENOENT)
return NULL;
- } else {
+ else
ohshite(_("Error opening filters.d"));
- }
}
while ((dent = readdir(dir)) != NULL) {