]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mood.c
para_server: Initialize the new afs.
[paraslash.git] / mood.c
diff --git a/mood.c b/mood.c
index b65561d582e84a8e12ef57daa8523cce660d878a..996b71fac99257758e2a5d8cad9d6c018cf1ba06 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -1,5 +1,6 @@
 #include "para.h"
 #include "error.h"
+#include "afh.h"
 #include "afs.h"
 #include "list.h"
 #include "string.h"
@@ -235,11 +236,6 @@ static int mm_is_set_score_function(const struct osl_row *row, void *bitnum)
        return -100;
 }
 
-static int para_random(unsigned max)
-{
-       return ((max + 0.0) * (rand() / (RAND_MAX + 1.0)));
-}
-
 /* returns 1 if row matches score item, -1 otherwise */
 static int add_item_score(const void *row, struct mood_item *item, long *score,
                long *score_arg_sum)