From db367279972a7b8c31a2db2d07f17ae89f7c03d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 29 Mar 2010 16:15:46 +0000 Subject: use error() rather than post() where appropriate svn path=/trunk/externals/iem/iemnet/; revision=13302 --- tcpclient.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tcpclient.c b/tcpclient.c index 7d2ec74..b1b33e7 100644 --- a/tcpclient.c +++ b/tcpclient.c @@ -141,7 +141,7 @@ static void tcpclient_connect(t_tcpclient *x, t_symbol *hostname, t_floatarg fpo x->x_connectstate = 0; /* start child thread */ if(pthread_create(&x->x_threadid, &x->x_threadattr, tcpclient_child_connect, x) < 0) - post("%s: could not create new thread", objName); + error("%s: could not create new thread", objName); } static void tcpclient_disconnect(t_tcpclient *x) @@ -222,9 +222,9 @@ static void *tcpclient_new(void) /* prepare child thread */ if(pthread_attr_init(&x->x_threadattr) < 0) - post("%s: warning: could not prepare child thread", objName); + error("%s: warning: could not prepare child thread", objName); if(pthread_attr_setdetachstate(&x->x_threadattr, PTHREAD_CREATE_DETACHED) < 0) - post("%s: warning: could not prepare child thread", objName); + error("%s: warning: could not prepare child thread", objName); return (x); @@ -238,9 +238,6 @@ static void tcpclient_free(t_tcpclient *x) IEMNET_EXTERN void tcpclient_setup(void) { - post("tcpclient"); - //static int again=0; if(again)return; again=1; - tcpclient_class = class_new(gensym(objName), (t_newmethod)tcpclient_new, (t_method)tcpclient_free, sizeof(t_tcpclient), 0, A_DEFFLOAT, 0); -- cgit v1.2.1