Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11356
Modified Files: Tag: devel_0_39 m_obj.c t_main.c t_tkcmd.c u_pdreceive.c Log Message: fixed warnings
Index: u_pdreceive.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/u_pdreceive.c,v retrieving revision 1.2.8.1 retrieving revision 1.2.8.2 diff -C2 -d -r1.2.8.1 -r1.2.8.2 *** u_pdreceive.c 28 Oct 2005 11:01:41 -0000 1.2.8.1 --- u_pdreceive.c 27 Nov 2005 08:14:14 -0000 1.2.8.2 *************** *** 21,24 **** --- 21,25 ---- #include <stdio.h> #include <unistd.h> + #include <sys/select.h> #define SOCKET_ERROR -1 #endif *************** *** 48,52 **** int portno; struct sockaddr_in server; - int nretry = 10; #ifdef MSW short version = MAKEWORD(2, 0); --- 49,52 ---- *************** *** 115,119 **** static void addport(int fd) { - int nfd = nfdpoll; t_fdpoll *fp; fdpoll = (t_fdpoll *)realloc(fdpoll, --- 115,118 ---- *************** *** 134,139 **** static void rmport(t_fdpoll *x) { ! int nfd = nfdpoll; ! int i, size = nfdpoll * sizeof(t_fdpoll); t_fdpoll *fp; for (i = nfdpoll, fp = fdpoll; i--; fp++) --- 133,137 ---- static void rmport(t_fdpoll *x) { ! int i; t_fdpoll *fp; for (i = nfdpoll, fp = fdpoll; i--; fp++) *************** *** 323,324 **** --- 321,323 ---- #endif } +
Index: t_tkcmd.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/t_tkcmd.c,v retrieving revision 1.2.4.1.2.7 retrieving revision 1.2.4.1.2.8 diff -C2 -d -r1.2.4.1.2.7 -r1.2.4.1.2.8 *** t_tkcmd.c 28 Oct 2005 11:01:41 -0000 1.2.4.1.2.7 --- t_tkcmd.c 27 Nov 2005 08:14:14 -0000 1.2.4.1.2.8 *************** *** 345,353 **** const char *arg0; struct sockaddr_in server; ! int msgsock; ! int len = sizeof(server), nchar; int ntry = 0, portno = FIRSTPORTNUM; int xsock = -1; - char morebuf[256]; #ifdef MSW short version = MAKEWORD(2, 0); --- 345,351 ---- const char *arg0; struct sockaddr_in server; ! int len = sizeof(server); int ntry = 0, portno = FIRSTPORTNUM; int xsock = -1; #ifdef MSW short version = MAKEWORD(2, 0); *************** *** 596,600 **** char *str; int n; ! if (t = strrchr(s, '/')) str = s, n = (t-s) + 1; else str = "./", n = 2; if (n > GUISTRING-100) n = GUISTRING-100; --- 594,598 ---- char *str; int n; ! t = strrchr(s, '/'); if (t) str = s, n = (t-s) + 1; else str = "./", n = 2; if (n > GUISTRING-100) n = GUISTRING-100; *************** *** 604,609 **** while (strlen(pdgui_path) > 0 && pdgui_path[strlen(pdgui_path)-1] == '/') pdgui_path[strlen(pdgui_path)-1] = 0; ! if (t = strrchr(pdgui_path, '/')) ! *t = 0; } #endif --- 602,606 ---- while (strlen(pdgui_path) > 0 && pdgui_path[strlen(pdgui_path)-1] == '/') pdgui_path[strlen(pdgui_path)-1] = 0; ! t = strrchr(pdgui_path, '/'); if (t) *t = 0; } #endif *************** *** 617,621 **** { const char *argv = Tcl_GetVar(interp, "argv", 0); ! int portno, argno = 0; /* argument passing seems to be different in MSW as opposed to unix-likes. Here we check if we got sent a "port number" as an --- 614,618 ---- { const char *argv = Tcl_GetVar(interp, "argv", 0); ! int portno; /* argument passing seems to be different in MSW as opposed to unix-likes. Here we check if we got sent a "port number" as an
Index: t_main.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/t_main.c,v retrieving revision 1.2.8.2 retrieving revision 1.2.8.3 diff -C2 -d -r1.2.8.2 -r1.2.8.3 *** t_main.c 28 Oct 2005 11:01:40 -0000 1.2.8.2 --- t_main.c 27 Nov 2005 08:14:14 -0000 1.2.8.3 *************** *** 86,91 **** Tcl_Interp *interp /* Interpreter for application. */ ) { - Tk_Window mainwindow; - if (Tcl_Init(interp) == TCL_ERROR) { return TCL_ERROR; --- 86,89 ----
Index: m_obj.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_obj.c,v retrieving revision 1.2.4.3.2.3 retrieving revision 1.2.4.3.2.4 diff -C2 -d -r1.2.4.3.2.3 -r1.2.4.3.2.4 *** m_obj.c 21 Oct 2005 13:17:51 -0000 1.2.4.3.2.3 --- m_obj.c 27 Nov 2005 08:14:14 -0000 1.2.4.3.2.4 *************** *** 72,78 **** x->i_next = 0; x->i_tip = gensym("?"); ! if (y = owner->ob_inlet) { ! while (y2 = y->i_next) y = y2; y->i_next = x; } --- 72,78 ---- x->i_next = 0; x->i_tip = gensym("?"); ! if ((y = owner->ob_inlet)) { ! while ((y2 = y->i_next)) y = y2; y->i_next = x; } *************** *** 155,159 **** static void inlet_list(t_inlet *x, t_symbol *s, int argc, t_atom *argv) { - t_atom at; if (x->i_symfrom == &s_list || x->i_symfrom == &s_float || x->i_symfrom == &s_symbol || x->i_symfrom == &s_pointer) --- 155,158 ---- *************** *** 203,209 **** x->i_pointerslot = gp; x->i_next = 0; ! if (y = owner->ob_inlet) { ! while (y2 = y->i_next) y = y2; y->i_next = x; } --- 202,208 ---- x->i_pointerslot = gp; x->i_next = 0; ! if ((y = owner->ob_inlet)) { ! while ((y2 = y->i_next)) y = y2; y->i_next = x; } *************** *** 225,231 **** x->i_floatslot = fp; x->i_next = 0; ! if (y = owner->ob_inlet) { ! while (y2 = y->i_next) y = y2; y->i_next = x; } --- 224,230 ---- x->i_floatslot = fp; x->i_next = 0; ! if ((y = owner->ob_inlet)) { ! while ((y2 = y->i_next)) y = y2; y->i_next = x; } *************** *** 247,253 **** x->i_symslot = sp; x->i_next = 0; ! if (y = owner->ob_inlet) { ! while (y2 = y->i_next) y = y2; y->i_next = x; } --- 246,252 ---- x->i_symslot = sp; x->i_next = 0; ! if ((y = owner->ob_inlet)) { ! while ((y2 = y->i_next)) y = y2; y->i_next = x; } *************** *** 355,361 **** x->o_owner = owner; x->o_next = 0; ! if (y = owner->ob_outlet) { ! while (y2 = y->o_next) y = y2; y->o_next = x; } --- 354,360 ---- x->o_owner = owner; x->o_next = 0; ! if ((y = owner->ob_outlet)) { ! while ((y2 = y->o_next)) y = y2; y->o_next = x; } *************** *** 581,585 **** goto done; } ! while (oc2 = oc->oc_next) { if (oc2->oc_to == to) --- 580,584 ---- goto done; } ! while ((oc2 = oc->oc_next)) { if (oc2->oc_to == to)