X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui_common.c;h=6bd54081ba1fbd5f45d0249419e9ec752c04041e;hp=6ca226e6e0d468e953f3e1aac6cab52364f94ffb;hb=4bbba7bb5967ad5a010ff218e7a6f24af2905867;hpb=f6f50d03a09d6bc423324206d274336e9905bbb4 diff --git a/gui_common.c b/gui_common.c index 6ca226e6..6bd54081 100644 --- a/gui_common.c +++ b/gui_common.c @@ -1,9 +1,19 @@ +/* + * Copyright (C) 2006-2007 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + +/** \file gui_common.c Functions used by the guis of paraslash. */ + + +#include +#include + #include "para.h" #include "string.h" #include "fd.h" -extern const char *status_item_list[NUM_STAT_ITEMS]; - int para_open_audiod_pipe(char *cmd) { int fds[3] = {0, 1, 0}; @@ -11,7 +21,7 @@ int para_open_audiod_pipe(char *cmd) int ret = para_exec_cmdline_pid(&pid, cmd, fds); if (ret < 0) return ret; - ret = mark_fd_nonblock(fds[1]); + ret = mark_fd_nonblocking(fds[1]); if (ret > 0) return fds[1]; close(fds[1]);