]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod.c
recv_cred_buffer typo: Return proper error number
[paraslash.git] / audiod.c
index 0e5fed4876d389ee8804e8f3d99593dbd668efce..f15ab710d8808da2b945632a9d42d4ad8133f0e0 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1157,7 +1157,7 @@ static int init_stream_io(void)
        free(cmd);
        /* filters */
        filter_init(filters);
-       nf = MAX(2,  conf.filter_given) + 1;
+       nf = PARA_MAX(2,  conf.filter_given) + 1;
        PARA_INFO_LOG("allocating space for %d filters\n", nf);
        FOR_EACH_AUDIO_FORMAT(i) {
                afi[i].filter_conf = para_malloc(nf * sizeof(char *));
@@ -1525,7 +1525,7 @@ static void audiod_pre_select(fd_set *rfds, fd_set *wfds, struct timeval *tv,
                a = &afi[s->format];
                ret = a->receiver->pre_select(rn, rfds, wfds, tv);
 //             PARA_NOTICE_LOG("%s preselect: %d\n", a->receiver->name, ret);
-               *max_fileno = MAX(*max_fileno, ret);
+               *max_fileno = PARA_MAX(*max_fileno, ret);
        }
 }
 static void audiod_post_select(int select_ret, fd_set *rfds, fd_set *wfds)