summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/MiddleWare.cpp4
-rw-r--r--src/daemon/MiddleWare.h8
2 files changed, 5 insertions, 7 deletions
diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp
index 2f15d50d..8b8795a2 100644
--- a/src/daemon/MiddleWare.cpp
+++ b/src/daemon/MiddleWare.cpp
@@ -781,11 +781,11 @@ void GetPluginsInfo(map_map_string_t &map_of_plugin_info)
struct dirent *dent;
while ((dent = readdir(dir)) != NULL)
{
- if (!is_regular_file(dent, PLUGINS_CONF_DIR))
- continue;
char *ext = strrchr(dent->d_name, '.');
if (!ext || strcmp(ext + 1, "conf") != 0)
continue;
+ if (!is_regular_file(dent, PLUGINS_CONF_DIR))
+ continue;
VERB3 log("Found %s", dent->d_name);
*ext = '\0';
diff --git a/src/daemon/MiddleWare.h b/src/daemon/MiddleWare.h
index 2cbf4eb5..fde29978 100644
--- a/src/daemon/MiddleWare.h
+++ b/src/daemon/MiddleWare.h
@@ -52,14 +52,12 @@ typedef enum {
* ...).
* @param crash_data
* A crash report.
- * @param reporters
- * List of allowed reporters. Which reporters will be used depends
- * on the analyzer of the crash_data. Reporters missing from this list
- * will not be used.
+ * @param events
+ * List of events to run.
* @param caller_uid
* An user uid.
* @return
- * A report status, which reporters ends successfuly with messages.
+ * A report status: which events finished successfully, with messages.
*/
report_status_t Report(crash_data_t *crash_data,
const vector_string_t& events,