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/tcpsend.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net/tcpsend.c') diff --git a/net/tcpsend.c b/net/tcpsend.c index b576eae..7aef491 100644 --- a/net/tcpsend.c +++ b/net/tcpsend.c @@ -142,13 +142,13 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv) e = f - d; if (e != 0) { - error("tcpsend_send: item %d (%f) is not an integer", i, f); + pd_error(x, "tcpsend_send: item %d (%f) is not an integer", i, f); return; } c = (unsigned char)d; if (c != d) { - error("tcpsend_send: item %d (%f) is not between 0 and 255", i, f); + pd_error(x, "tcpsend_send: item %d (%f) is not between 0 and 255", i, f); return; } #ifdef DEBUG @@ -191,7 +191,7 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv) } else { - error("tcpsend_send: item %d is not a float or a file name", i); + pd_error(x, "tcpsend_send: item %d is not a float or a file name", i); return; } } @@ -229,7 +229,7 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv) } } } - else error("tcpsend: not connected"); + else pd_error(x, "tcpsend: not connected"); } static void tcpsend_free(t_tcpsend *x) -- cgit v1.2.1