]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - playlist.c
com_cpsi(): Return negative on errors
[paraslash.git] / playlist.c
index 2c5b67777e2f0b41671bc436e3ef7b02f83e6740..e3569358fffeac5dd83799ef6cea60a078edf9ee 100644 (file)
@@ -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(),
@@ -141,6 +143,7 @@ void playlist_check_callback(int fd, __a_unused const struct osl_object *query)
        osl_rbtree_loop(playlists_table, BLOBCOL_ID, &pb,
                check_playlist);
        flush_and_free_pb(&pb);
+       return 0;
 }
 
 /**