]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - score.c
afs: Replace ->init of afs tables by table operations.
[paraslash.git] / score.c
diff --git a/score.c b/score.c
index c7a2411b4282e5c224b8692ab7428f7fff75f3b4..fa12663cb936535cd43d623c37b331a86896a1cb 100644 (file)
--- a/score.c
+++ b/score.c
@@ -293,14 +293,8 @@ int clear_score_table(void)
        return score_open(NULL);
 }
 
-/**
- * Initialize the scoring subsystem.
- *
- * \param t The members of \a t are filled in by the function.
- */
-void score_init(struct afs_table *t)
-{
-       t->name = score_table_desc.name;
-       t->open = score_open;
-       t->close = score_close;
-}
+/** The score table stores (aft row, score) pairs in memory. */
+const struct afs_table_operations score_ops = {
+       .open = score_open,
+       .close = score_close,
+};