diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-03-29 16:15:46 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-03-29 16:15:46 +0000 |
commit | db367279972a7b8c31a2db2d07f17ae89f7c03d6 (patch) | |
tree | e606bbcfd8ef2cb5c875796ff0f06e5a9906f693 /tcpclient.c | |
parent | 227f28e36956f8864071667090018cdbdc9686e7 (diff) |
use error() rather than post() where appropriate
svn path=/trunk/externals/iem/iemnet/; revision=13302
Diffstat (limited to 'tcpclient.c')
-rw-r--r-- | tcpclient.c | 9 |
1 files 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); |