aboutsummaryrefslogtreecommitdiff
path: root/control
diff options
context:
space:
mode:
Diffstat (limited to 'control')
-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);