aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-04-24 19:40:41 +0000
committerN.N. <matju@users.sourceforge.net>2009-04-24 19:40:41 +0000
commit8c41bdc06ba145dbd17f4a9af65515840a95c930 (patch)
treef1a2d8a7a98e9d689f664cce7bff93d920b80418
parent5cd6a6c709be1f7abbfdd25c8ab15a35b4881ff3 (diff)
goes with recently removed warnings
svn path=/trunk/; revision=11124
-rw-r--r--desiredata/src/kernel.c7
-rw-r--r--desiredata/src/s_inter.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/desiredata/src/kernel.c b/desiredata/src/kernel.c
index 8552c279..fb282c9c 100644
--- a/desiredata/src/kernel.c
+++ b/desiredata/src/kernel.c
@@ -1,4 +1,4 @@
-/* $Id: kernel.c,v 1.1.2.92 2007-09-09 21:34:56 matju Exp $
+/* $Id: kernel.c,v 1.1.2.92 2007/09/09 21:34:56 matju Exp $
* Copyright 2006-2007 Mathieu Bouchard.
* Copyright (c) 1997-2006 Miller Puckette.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
@@ -230,7 +230,7 @@ void pd_free(t_pd *x) {
if (c->patchable) {
t_object *y = (t_object *)x;
while (y->outlet) outlet_free(y->outlet);
- while (y->inlet) inlet_free(y->inlet);
+ while (y-> inlet) inlet_free(y-> inlet);
if (y->binbuf) binbuf_free(y->binbuf);
}
/* schedule for deletion if need to keep the allocation around */
@@ -1601,6 +1601,7 @@ char *binbuf_text_miller(t_binbuf *x, char *t, char *end) {
stripped so we assume all "$" chars are real dollars. In fact, we only know at least one was. */
if (dollar) {
const char *b = buf.str().data();
+ //printf("b=%s\n",b);
if (*b != '$') dollar = 0;
for (b++; *b; b++) if (!isdigit(*b)) dollar = 0;
if (dollar) binbuf_addv(x,"$",atoi(buf.str().data()+1));
@@ -1679,7 +1680,7 @@ void binbuf_add(t_binbuf *x, int argc, t_atom *argv) {
}
#define MAXADDMESSV 100
-void binbuf_addv(t_binbuf *x, char *fmt, ...) {
+void binbuf_addv(t_binbuf *x, const char *fmt, ...) {
va_list ap;
t_atom arg[MAXADDMESSV], *at =arg;
int nargs = 0;
diff --git a/desiredata/src/s_inter.c b/desiredata/src/s_inter.c
index ad19ceb1..bfa32bf1 100644
--- a/desiredata/src/s_inter.c
+++ b/desiredata/src/s_inter.c
@@ -299,7 +299,7 @@ void sys_set_priority(int higher) {
/* ------------------ receiving incoming messages over sockets ------------- */
-void sys_sockerror(char *s) {
+void sys_sockerror(const char *s) {
#ifdef _WIN32
int err = WSAGetLastError();
if (err == 10054) return;
@@ -456,7 +456,7 @@ int max(int a, int b) { return ((a)>(b)?(a):(b)); }
std::ostringstream lost_posts;
-void sys_vgui(char *fmt, ...) {
+void sys_vgui(const char *fmt, ...) {
t_socketreceiver *self = sys_socketreceiver;
va_list ap;
va_start(ap, fmt);
@@ -484,7 +484,7 @@ void sys_vgui(char *fmt, ...) {
self->bytessincelastping += msglen;
}
-void sys_gui(char *s) {sys_vgui("%s", s);}
+void sys_gui(const char *s) {sys_vgui("%s", s);}
static int sys_flushtogui(t_socketreceiver *self) {
int writesize = self->ohead-self->otail;