*/
-
// This module implements a generic system of settings
// (attribute-value) that can be associated with search targets. The
// system supports both default values, per-target overrides, and
// per-user settings.
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
-#include <dirent.h>
+#include "direntz.h"
#include <stdlib.h>
#include <sys/stat.h>
}
closedir(d);
}
- else if ((dot = rindex(path, '.')) && !strcmp(dot + 1, "xml"))
+ else if ((dot = strrchr(path, '.')) && !strcmp(dot + 1, "xml"))
read_settings_file(path, fun);
}