From c46c7fe43e29bf3881443ab5a6e1f532b076e549 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 7 Jul 2010 23:20:31 +0000 Subject: converted error() calls to pd_error() calls where appropriate, ie. where a findable error is desirable svn path=/trunk/externals/mrpeach/; revision=13694 --- net/tcpclient.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'net/tcpclient.c') diff --git a/net/tcpclient.c b/net/tcpclient.c index 23c1400..f3c63b3 100644 --- a/net/tcpclient.c +++ b/net/tcpclient.c @@ -266,12 +266,12 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv) e = f - d; if (e != 0) { - error("%s_send: item %d (%f) is not an integer", objName, i, f); + pd_error(x, "%s_send: item %d (%f) is not an integer", objName, i, f); return; } if ((d < 0) || (d > 255)) { - error("%s: item %d (%f) is not between 0 and 255", objName, i, f); + pd_error(x, "%s: item %d (%f) is not between 0 and 255", objName, i, f); return; } c = (unsigned char)d; @@ -312,7 +312,7 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv) } else { - error("%s_send: item %d is not a float or a file name", objName, i); + pd_error(x, "%s_send: item %d is not a float or a file name", objName, i); return; } } @@ -330,7 +330,7 @@ int tcpclient_send_buf(t_tcpclient *x, char *buf, int buf_len) if (x->x_blocked) return 0; if (x->x_fd < 0) { - error("%s: not connected", objName); + pd_error(x, "%s: not connected", objName); x->x_blocked++; return 0; } @@ -463,7 +463,7 @@ static void tcpclient_rcv(t_tcpclient *x) ret = select(sockfd+1, &readset, NULL, &exceptset, &ztout); if(ret < 0) { - error("%s: unable to read from socket", objName); + pd_error(x, "%s: unable to read from socket", objName); sys_closesocket(sockfd); return; } -- cgit v1.2.1