From 1d6ff3083554ecf35a3dc2371a3eb94418655e36 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sun, 16 Aug 2009 20:41:27 +0000 Subject: const error fix (from Carmen) svn path=/trunk/; revision=11930 --- desiredata/src/builtins.c | 2 +- desiredata/src/kernel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'desiredata') diff --git a/desiredata/src/builtins.c b/desiredata/src/builtins.c index 47709aed..f1848957 100644 --- a/desiredata/src/builtins.c +++ b/desiredata/src/builtins.c @@ -2854,7 +2854,7 @@ extern t_printhook sys_printhook; void unpost_printhook (const char *s) { std::ostringstream &b = current_unpost->buf; b << s; - char *p; + const char *p; const char *d=b.str().data(),*dd=d; for (;;) { p = strchr(d,'\n'); diff --git a/desiredata/src/kernel.c b/desiredata/src/kernel.c index ca69bebb..08a869e2 100644 --- a/desiredata/src/kernel.c +++ b/desiredata/src/kernel.c @@ -1381,7 +1381,7 @@ void class_settip(t_class *x,t_symbol* s) {x->firsttip = s;} void class_setfieldnames(t_class *x, const char *s) { char foo[64]; while (*s) { - char *t = strchr(s,' '); + const char *t = strchr(s,' '); int i = t-s; if (!t) return; memcpy(foo,s,i); -- cgit v1.2.1