Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18439
Modified Files: Tag: devel_0_39 s_inter.c s_loader.c s_main.c s_path.c Log Message: fixed warnings
Index: s_loader.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_loader.c,v retrieving revision 1.4.4.5.2.3 retrieving revision 1.4.4.5.2.4 diff -C2 -d -r1.4.4.5.2.3 -r1.4.4.5.2.4 *** s_loader.c 24 Nov 2005 11:14:43 -0000 1.4.4.5.2.3 --- s_loader.c 27 Nov 2005 23:15:45 -0000 1.4.4.5.2.4 *************** *** 91,95 **** filename[MAXPDSTRING-1] = 0; /* extract the setup function name */ ! if (lastdot = strrchr(nameptr, '.')) *lastdot = 0;
--- 91,95 ---- filename[MAXPDSTRING-1] = 0; /* extract the setup function name */ ! if ((lastdot = strrchr(nameptr, '.'))) *lastdot = 0;
*************** *** 224,228 **** loader_queue_t *q; for(q = &loaders; q; q = q->next) ! if(ok = q->loader(dirname,classname)) break;
canvas_resume_dsp(dspstate); --- 224,228 ---- loader_queue_t *q; for(q = &loaders; q; q = q->next) ! if((ok = q->loader(dirname,classname))) break;
canvas_resume_dsp(dspstate);
Index: s_inter.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v retrieving revision 1.5.4.10.2.10 retrieving revision 1.5.4.10.2.11 diff -C2 -d -r1.5.4.10.2.10 -r1.5.4.10.2.11 *** s_inter.c 28 Oct 2005 12:11:30 -0000 1.5.4.10.2.10 --- s_inter.c 27 Nov 2005 23:15:45 -0000 1.5.4.10.2.11 *************** *** 518,522 **** else /* TCP ("streaming") socket protocol */ { - char *semi; int readto = (x->sr_inhead >= x->sr_intail ? INBUFSIZE : x->sr_intail-1); --- 518,521 ---- *************** *** 660,664 **** void sys_vgui(char *fmt, ...) { ! int msglen, bytesleft, headwas, nwrote; va_list ap;
--- 659,663 ---- void sys_vgui(char *fmt, ...) { ! int msglen; va_list ap;
*************** *** 842,846 **** sys_guiqueuehead = 0; } ! else for (gq = sys_guiqueuehead; gq2 = gq->gq_next; gq = gq2) if (gq2->gq_client == client) { --- 841,845 ---- sys_guiqueuehead = 0; } ! else for (gq = sys_guiqueuehead; (gq2 = gq->gq_next); gq = gq2) if (gq2->gq_client == client) {
Index: s_main.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_main.c,v retrieving revision 1.7.4.17.2.8 retrieving revision 1.7.4.17.2.9 diff -C2 -d -r1.7.4.17.2.8 -r1.7.4.17.2.9 *** s_main.c 21 Oct 2005 13:16:24 -0000 1.7.4.17.2.8 --- s_main.c 27 Nov 2005 23:15:45 -0000 1.7.4.17.2.9 *************** *** 470,474 **** }
! static int sys_getmultidevchannels(int n, int *devlist) { int sum = 0; --- 470,474 ---- }
! /*static int sys_getmultidevchannels(int n, int *devlist) { int sum = 0; *************** *** 477,482 **** while(n--)sum+=*devlist++; return sum; ! } !
/* this routine tries to figure out where to find the auxilliary files --- 477,481 ---- while(n--)sum+=*devlist++; return sum; ! }*/
/* this routine tries to figure out where to find the auxilliary files *************** *** 486,490 **** void sys_findprogdir(char *progname) { ! char sbuf[MAXPDSTRING], sbuf2[MAXPDSTRING], *sp; char *lastslash; #ifdef UNISTD --- 485,489 ---- void sys_findprogdir(char *progname) { ! char sbuf[MAXPDSTRING], sbuf2[MAXPDSTRING]; char *lastslash; #ifdef UNISTD *************** *** 584,589 **** int sys_argparse(int argc, char **argv) { - char sbuf[MAXPDSTRING]; - int i; while ((argc > 0) && **argv == '-') { --- 583,586 ---- *************** *** 1062,1068 **** sys_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev, 0); } - - static void sys_addreferencepath(void) - { - char sbuf[MAXPDSTRING]; - } --- 1059,1060 ----
Index: s_path.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_path.c,v retrieving revision 1.3.4.6.2.3 retrieving revision 1.3.4.6.2.4 diff -C2 -d -r1.3.4.6.2.3 -r1.3.4.6.2.4 *** s_path.c 27 Nov 2005 08:12:10 -0000 1.3.4.6.2.3 --- s_path.c 27 Nov 2005 23:15:45 -0000 1.3.4.6.2.4 *************** *** 11,14 **** --- 11,15 ---- */
+ #undef DEBUG /* #define DEBUG(x) x */ #define DEBUG(x) *************** *** 40,44 **** { char c; ! while (c = *from++) { #ifdef MSW --- 41,45 ---- { char c; ! while ((c = *from++)) { #ifdef MSW *************** *** 54,58 **** { char c; ! while (c = *from++) { #ifdef MSW --- 55,59 ---- { char c; ! while ((c = *from++)) { #ifdef MSW