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;
}
/**
* Initialize the scoring subsystem.
*
- * \param t The members of \t are filled in by the function.
+ * \param t The members of \a t are filled in by the function.
*/
void score_init(struct afs_table *t)
{