para_play -> para_write documentation update
[paraslash.git] / audioc.c
index 968f84b..1fa9880 100644 (file)
--- a/audioc.c
+++ b/audioc.c
 #include "para.h"
 #include "net.h"
 #include "string.h"
+#include "fd.h"
 
 struct gengetopt_args_info conf;
 char *tmpfifo;
 enum {E_SYNTAX, E_READ, E_WRITE, E_SOCKET, E_INIT_SOCK_ADDR, E_CONNECT, E_CREDENTIALS, E_SELECT, E_OVERRUN};
 
 
-void para_log(__unused int ll, __unused const char* fmt,...) /* no logging */
+void para_log(__a_unused int ll, __a_unused const char* fmt,...) /* no logging */
 {
 }
 
@@ -120,17 +121,17 @@ int main(int argc, char *argv[])
                        fprintf(stderr, "loaded: %d\n", loaded);
                if (loaded < conf.bufsize_arg) {
                        FD_SET(fd, &rfd);
-                       max_fileno = MAX(max_fileno, fd);
+                       max_fileno = PARA_MAX(max_fileno, fd);
                }
                if (loaded > 0) {
                        FD_SET(STDOUT_FILENO, &wfd);
-                       max_fileno = MAX(max_fileno, STDOUT_FILENO);
+                       max_fileno = PARA_MAX(max_fileno, STDOUT_FILENO);
                        check_write = 1;
                }
                ret = -E_OVERRUN;
                if (max_fileno < 0)
                        goto out;
-               ret = select(max_fileno + 1, &rfd, &wfd, NULL, NULL);
+               ret = para_select(max_fileno + 1, &rfd, &wfd, NULL);
                if (ret < 0) {
                        ret = -E_SELECT;
                        goto out;