X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=playlist.c;h=e3569358fffeac5dd83799ef6cea60a078edf9ee;hp=46333a00eef684cac5c3f5812811551875e8ad2a;hb=4bdac4f11551a124d2e0e5b43cf6aeda3b8c5c71;hpb=2edd5e54e7443ed42d4c4e56c2efb242956f818b diff --git a/playlist.c b/playlist.c index 46333a00..e3569358 100644 --- a/playlist.c +++ b/playlist.c @@ -126,8 +126,10 @@ static int check_playlist(struct osl_row *row, void *data) * * \param fd The afs socket. * \param query Unused. + * + * \return Currently this function always returns zero. */ -void playlist_check_callback(int fd, __a_unused const struct osl_object *query) +int playlist_check_callback(int fd, __a_unused const struct osl_object *query) { struct para_buffer pb = { .max_size = shm_get_shmmax(), @@ -140,9 +142,8 @@ void playlist_check_callback(int fd, __a_unused const struct osl_object *query) para_printf(&pb, "checking playlists...\n"); osl_rbtree_loop(playlists_table, BLOBCOL_ID, &pb, check_playlist); - if (pb.offset) - pass_buffer_as_shm(fd, SBD_OUTPUT, pb.buf, pb.offset); - free(pb.buf); + flush_and_free_pb(&pb); + return 0; } /**