diff options
author | Winfried Ritsch <ritsch@users.sourceforge.net> | 2005-11-21 12:20:44 +0000 |
---|---|---|
committer | Winfried Ritsch <ritsch@users.sourceforge.net> | 2005-11-21 12:20:44 +0000 |
commit | 663d95f64d906728d72e5d8d51fc8f0f62e348f7 (patch) | |
tree | 39a6b3d38f0baa4286f5e6cfd22a48bd033a8e16 | |
parent | a23340293d039188f28dc21359e482fb10a827b0 (diff) |
bracket in #ifdef wrong
variable declaration on wrong position
svn path=/trunk/externals/iem/comport/; revision=3997
-rw-r--r-- | comport/comport.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/comport/comport.c b/comport/comport.c index 179a1c7..1b637ef 100644 --- a/comport/comport.c +++ b/comport/comport.c @@ -710,8 +710,8 @@ static void comport_tick(t_comport *x) break; } } - } */ + } #else { fd_set com_rfds; @@ -738,7 +738,7 @@ static void comport_tick(t_comport *x) if (!x->x_hit) clock_delay(x->x_clock, 1); } -static void comport_float(t_comport *x,t_float f) +static void comport_float(t_comport *x, t_float f) { unsigned char chr = ((int) f) & 0xFF; /* brutal conv */ @@ -929,9 +929,10 @@ static void comport_devicename(t_comport *x, t_symbol *s) static void comport_print(t_comport *x, t_symbol *s, int argc, t_atom *argv) { static char buf[256]; + char *pch = buf; + while(argc--) { atom_string(argv++, buf, 255); - char *pch = buf; while(*pch != 0) { write_serial(x, *pch++); } |