grab: use grab_client_cmdline_parser_string()
[paraslash.git] / audioc.c
index b9e7853..7d472a6 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -119,13 +119,10 @@ int main(int argc, char *argv[])
                FD_ZERO(&wfd);
                if (loaded && loaded > 10000)
                        fprintf(stderr, "loaded: %d\n", loaded);
-               if (loaded < conf.bufsize_arg) {
-                       FD_SET(fd, &rfd);
-                       max_fileno = PARA_MAX(max_fileno, fd);
-               }
+               if (loaded < conf.bufsize_arg)
+                       para_fd_set(fd, &rfd, &max_fileno);
                if (loaded > 0) {
-                       FD_SET(STDOUT_FILENO, &wfd);
-                       max_fileno = PARA_MAX(max_fileno, STDOUT_FILENO);
+                       para_fd_set(STDOUT_FILENO, &wfd, &max_fileno);
                        check_write = 1;
                }
                ret = -E_OVERRUN;