X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=833820a8b2ff8f13108102f41f1d9578bd564c17;hp=e06382e85cf2831ce638b27d0e5b057f759faac2;hb=ab9f717f527fa0723e4f50c4bdeab39533738773;hpb=9d75ded33ce6664156acb07e311f51d55970bbea diff --git a/mood.c b/mood.c index e06382e8..833820a8 100644 --- a/mood.c +++ b/mood.c @@ -455,19 +455,6 @@ void mood_check_callback(int fd, __a_unused const struct osl_object *query) free(pb.buf); } -#if 0 -static unsigned int_log2(uint64_t x) -{ - unsigned res = 0; - - while (x) { - x /= 2; - res++; - } - return res; -} -#endif - static int64_t normalized_value(int64_t x, int64_t n, int64_t sum, int64_t qd) { if (!n || !qd) @@ -918,6 +905,8 @@ static int reload_current_mood(void) * This function performs actions required due to the occurrence of the given * event. Possible actions include reload of the current mood and update of the * score of an audio file. + * + * \return Standard. */ int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb, void *data)