Replace status item DBINFO3 by DIRECTORY.
[paraslash.git] / score.c
diff --git a/score.c b/score.c
index abccb28fe5082df36e88a5e3ba6a01888c808cb8..6cfa647d6a96730f1ba6a90f917ab1213e1611f2 100644 (file)
--- a/score.c
+++ b/score.c
@@ -357,20 +357,21 @@ static int score_open(__a_unused const char *dir)
        return osl_open_table(&score_table_desc, &score_table);
 }
 
-static int score_event_handler(enum afs_events event, struct para_buffer *pb,
-               void *data)
+/**
+ * Remove all entries from the score table, but keep the table open.
+ *
+ * \return Standard.
+ */
+int clear_score_table(void)
 {
-       int ret;
+       score_close();
+       return score_open(NULL);
+}
 
-       switch(event) {
-       case ATTRIBUTE_ADD:
-       case ATTRIBUTE_REMOVE:
-       case ATTRIBUTE_RENAME: {
-               score_close();
-               return score_open(NULL);
-               }
-       default: return 1;
-       }
+static int score_event_handler(__a_unused enum afs_events event,
+               __a_unused struct para_buffer *pb, __a_unused void *data)
+{
+       return 1;
 }
 
 /**