Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23202
Modified Files: Tag: desiredata s_inter.c Log Message: cleanup
Index: s_inter.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v retrieving revision 1.5.4.10.2.25.2.21 retrieving revision 1.5.4.10.2.25.2.22 diff -C2 -d -r1.5.4.10.2.25.2.21 -r1.5.4.10.2.25.2.22 *** s_inter.c 10 Jul 2007 16:53:10 -0000 1.5.4.10.2.25.2.21 --- s_inter.c 14 Jul 2007 00:53:29 -0000 1.5.4.10.2.25.2.22 *************** *** 250,260 **** #if (_POSIX_PRIORITY_SCHEDULING - 0) >= 200112L struct sched_param par; - int p1 ,p2, p3; - p1 = sched_get_priority_min(SCHED_FIFO); - p2 = sched_get_priority_max(SCHED_FIFO); #ifdef USEAPI_JACK ! p3 = (higher ? p1 + 7 : p1 + 5); #else ! p3 = (higher ? p2 - 1 : p2 - 3); #endif par.sched_priority = p3; --- 250,259 ---- #if (_POSIX_PRIORITY_SCHEDULING - 0) >= 200112L struct sched_param par; #ifdef USEAPI_JACK ! int p1 = sched_get_priority_min(SCHED_FIFO); ! int p3 = (higher ? p1 + 7 : p1 + 5); #else ! int p2 = sched_get_priority_max(SCHED_FIFO); ! int p3 = (higher ? p2 - 1 : p2 - 3); #endif par.sched_priority = p3; *************** *** 329,335 **** void sys_rmpollfn(int fd) { int nfd = sys_nfdpoll; ! int i, size = nfd * sizeof(t_fdpoll); t_fdpoll *fp = sys_fdpoll; ! for (i = nfd; i--; fp++) { if (fp->fdp_fd == fd) { while (i--) { --- 328,334 ---- void sys_rmpollfn(int fd) { int nfd = sys_nfdpoll; ! int size = nfd * sizeof(t_fdpoll); t_fdpoll *fp = sys_fdpoll; ! for (int i=nfd; i--; fp++) { if (fp->fdp_fd == fd) { while (i--) { *************** *** 408,415 ****
void socketreceiver_read(t_socketreceiver *x, int fd) { - int readto; if (x->udp) {socketreceiver_getudp(x, fd); return;} /* else TCP */ ! readto = x->inhead >= x->intail ? INBUFSIZE : x->intail-1; /* the input buffer might be full. If so, drop the whole thing */ if (readto == x->inhead) { --- 407,413 ----
void socketreceiver_read(t_socketreceiver *x, int fd) { if (x->udp) {socketreceiver_getudp(x, fd); return;} /* else TCP */ ! int readto = x->inhead >= x->intail ? INBUFSIZE : x->intail-1; /* the input buffer might be full. If so, drop the whole thing */ if (readto == x->inhead) {