aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-08-16 20:41:27 +0000
committerN.N. <matju@users.sourceforge.net>2009-08-16 20:41:27 +0000
commit1d6ff3083554ecf35a3dc2371a3eb94418655e36 (patch)
tree54f8520b454f046e0d93e53929135947c0366e06 /desiredata/src
parent7873b57b372e662ced29a6446883fd1c7bb347d9 (diff)
const error fix (from Carmen)
svn path=/trunk/; revision=11930
Diffstat (limited to 'desiredata/src')
-rw-r--r--desiredata/src/builtins.c2
-rw-r--r--desiredata/src/kernel.c2
2 files changed, 2 insertions, 2 deletions
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);