Loading lib/nmxp_base.c +4 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ * Istituto Nazionale di Geofisica e Vulcanologia - Italy * quintiliani@ingv.it * * $Id: nmxp_base.c,v 1.65 2008-03-26 09:22:54 mtheo Exp $ * $Id: nmxp_base.c,v 1.66 2008-03-26 15:48:38 mtheo Exp $ * */ Loading Loading @@ -228,6 +228,9 @@ int nmxp_recv_ctrl(int isock, void *buffer, int length, int timeoutsec, int *rec recvCount = 0; while(cc > 0 && *recv_errno == 0 && recvCount < length) { /* TODO some operating system could not reset errno */ /* errno = 0 */ #ifdef HAVE_BROKEN_SO_RCVTIMEO if(timeoutsec == 0) { #endif Loading src/nmxptool_ew.c +4 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,10 @@ int nmxptool_ew_pd2ewring (NMXP_DATA_PROCESS *pd, SHM_INFO *pregionOut, MSG_LOGO /* TODO : all of the samples should always fit into a single TracePacket if MAX_TRACEBUF_SIZ remains defined in Trace_buf.h as 4096 or greater */ remains defined in Trace_buf.h as 4096 or greater 17 * 59 = 1003 samples = 4012 bytes 4012 + 64 = 4076 < 4096 */ samples = (int32_t *) ((char *)&tbuf + sizeof(TRACE_HEADER)); for(i=0; i < pd->nSamp; i++) { Loading Loading
lib/nmxp_base.c +4 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ * Istituto Nazionale di Geofisica e Vulcanologia - Italy * quintiliani@ingv.it * * $Id: nmxp_base.c,v 1.65 2008-03-26 09:22:54 mtheo Exp $ * $Id: nmxp_base.c,v 1.66 2008-03-26 15:48:38 mtheo Exp $ * */ Loading Loading @@ -228,6 +228,9 @@ int nmxp_recv_ctrl(int isock, void *buffer, int length, int timeoutsec, int *rec recvCount = 0; while(cc > 0 && *recv_errno == 0 && recvCount < length) { /* TODO some operating system could not reset errno */ /* errno = 0 */ #ifdef HAVE_BROKEN_SO_RCVTIMEO if(timeoutsec == 0) { #endif Loading
src/nmxptool_ew.c +4 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,10 @@ int nmxptool_ew_pd2ewring (NMXP_DATA_PROCESS *pd, SHM_INFO *pregionOut, MSG_LOGO /* TODO : all of the samples should always fit into a single TracePacket if MAX_TRACEBUF_SIZ remains defined in Trace_buf.h as 4096 or greater */ remains defined in Trace_buf.h as 4096 or greater 17 * 59 = 1003 samples = 4012 bytes 4012 + 64 = 4076 < 4096 */ samples = (int32_t *) ((char *)&tbuf + sizeof(TRACE_HEADER)); for(i=0; i < pd->nSamp; i++) { Loading