Merge the new afs code.
[paraslash.git] / audiod.c
index 9b79121b3aa16f51662b9e7e2649e097f81b5a26..d4abb3b2ba3a2e01d3da64dd7834aecae40dd2e1 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -497,7 +497,7 @@ out:
        return count;
 }
 
-static void check_stat_line(char *line)
+static int check_stat_line(char *line, __a_unused void *data)
 {
        int itemnum;
        size_t ilen = 0;
@@ -506,14 +506,14 @@ static void check_stat_line(char *line)
 
 //     PARA_INFO_LOG("line: %s\n", line);
        if (!line)
-               return;
+               return 1;
        itemnum = stat_line_valid(line);
        if (itemnum < 0) {
                PARA_WARNING_LOG("invalid status line: %s\n", line);
-               return;
+               return 1;
        }
        if (stat_task->clock_diff_count && itemnum != SI_CURRENT_TIME)
-               return;
+               return 1;
        tmp = make_message("%s\n", line);
        stat_client_write(tmp, itemnum);
        free(tmp);
@@ -557,6 +557,7 @@ static void check_stat_line(char *line)
                        stat_task->clock_diff_count--;
                break;
        }
+       return 1;
 }
 
 static void try_to_close_slot(int slot_num)
@@ -1068,7 +1069,7 @@ static void status_post_select(__a_unused struct sched *s, struct task *t)
                return;
        }
        bytes_left = for_each_line(st->pcd->buf, st->pcd->loaded,
-               &check_stat_line);
+               &check_stat_line, NULL);
        if (st->pcd->loaded != bytes_left) {
                st->last_status_read = *now;
                st->pcd->loaded = bytes_left;