]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mood.c
afs: Introduce flush_and_free_pb().
[paraslash.git] / mood.c
diff --git a/mood.c b/mood.c
index cbb2f438ef7d41ce22f33d6c4c927cc1227d9963..13b5b1807a7e2705ff2a8e28561550274371150a 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -447,9 +447,7 @@ void mood_check_callback(int fd, __a_unused const struct osl_object *query)
        para_printf(&pb, "checking moods...\n");
        osl_rbtree_loop(moods_table, BLOBCOL_ID, &pb,
                check_mood);
-       if (pb.offset)
-               pass_buffer_as_shm(fd, SBD_OUTPUT, pb.buf, pb.offset);
-       free(pb.buf);
+       flush_and_free_pb(&pb);
 }
 
 static int64_t normalized_value(int64_t x, int64_t n, int64_t sum, int64_t qd)