X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod.c;h=dfb61db4c1d811fdedf97d5fa381defc241ae03b;hp=b8c072d52cdc80ae48d3c56cbf065cff2d80e457;hb=f9d356c65720f944550f36af6dd364d0f0869dde;hpb=84f3cda92d0fb3d072b1a2d9bf8c2156c18d6398 diff --git a/audiod.c b/audiod.c index b8c072d5..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; } @@ -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;