X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod.c;h=dfb61db4c1d811fdedf97d5fa381defc241ae03b;hp=d4b728af4442fdee278c2d6f05e1e46d18c3bc88;hb=7f9340341574044e16e1ffc30f856f13d1e3ba6c;hpb=43f6a50eb9573ce1b8a7f008de73b51ff57f8260 diff --git a/audiod.c b/audiod.c index d4b728af..dfb61db4 100644 --- a/audiod.c +++ b/audiod.c @@ -119,7 +119,7 @@ int get_audio_format_num(char *name) { int i; - while (isspace(*name)) + while (para_isspace(*name)) name++; FOR_EACH_AUDIO_FORMAT(i) if (!strcmp(name, audio_formats[i])) @@ -869,7 +869,7 @@ static int audiod_get_socket(void) PARA_EMERG_LOG("can not listen on socket\n"); exit(EXIT_FAILURE); /* do not unlink socket */ } - mark_fd_nonblock(fd); + mark_fd_nonblocking(fd); return fd; } @@ -951,7 +951,7 @@ static void close_stat_pipe(void) return; client_close(stat_task->pcd); stat_task->pcd = NULL; - for (i = 0; i < NUM_STAT_ITEMS; i++) { + FOR_EACH_STATUS_ITEM(i) { free(stat_task->stat_item_values[i]); stat_task->stat_item_values[i] = NULL; } @@ -1168,7 +1168,7 @@ int main(int argc, char *argv[]) register_task(audiod_task); s.default_timeout.tv_sec = 0; s.default_timeout.tv_usec = 99 * 1000; - ret = sched(&s); + ret = schedule(&s); PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret)); return EXIT_FAILURE;