aboutsummaryrefslogtreecommitdiff
path: root/control/shell.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-26 12:35:23 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-11-26 12:35:23 +0000
commitcfed7d1ee29299c9d25658c6fb155ffb13c757d4 (patch)
treed547bdd0b30472224948065dc9f6863eb2512f1d /control/shell.c
parent4f3d739780d9de34f51844063f3cb3de50519e4e (diff)
warning reduction
svn path=/trunk/externals/ggee/; revision=255
Diffstat (limited to 'control/shell.c')
-rwxr-xr-xcontrol/shell.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/control/shell.c b/control/shell.c
index 79d536b..cb31f84 100755
--- a/control/shell.c
+++ b/control/shell.c
@@ -8,11 +8,14 @@
#endif
#include <unistd.h>
+#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
+void sys_rmpollfn(int fd);
+
/* ------------------------ shell ----------------------------- */
#define INBUFSIZE 1024
@@ -177,7 +180,7 @@ static void shell_send(t_shell *x, t_symbol *s,int ac, t_atom *at)
}
tmp[size-1] = '\0';
post("sending %s",tmp);
- fprintf(x->fdinpipe[0],tmp);
+ write(x->fdinpipe[0],tmp,strlen(tmp));
}
static void shell_anything(t_shell *x, t_symbol *s, int ac, t_atom *at)
@@ -244,7 +247,7 @@ void shell_free(t_shell* x)
binbuf_free(x->x_binbuf);
}
-static void *shell_new()
+static void *shell_new(void)
{
t_shell *x = (t_shell *)pd_new(shell_class);