comparison src/g23m-gprs/sndcp/sndcp_pei.c @ 196:a04cde1fb771

src/g23m-gprs/sndcp/sndcp_pei.c: removed compilation-failing broken code, see the comment added inside
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Oct 2016 01:14:47 +0000
parents 219afcfc6250
children
comparison
equal deleted inserted replaced
195:9342a20d9d06 196:a04cde1fb771
566 LOCAL void sndcp_dti_dti_connect_req (T_DTI2_CONNECT_REQ *dti2_connect_req) 566 LOCAL void sndcp_dti_dti_connect_req (T_DTI2_CONNECT_REQ *dti2_connect_req)
567 { 567 {
568 TRACE_FUNCTION ("sndcp_dti_dti_connect_req"); 568 TRACE_FUNCTION ("sndcp_dti_dti_connect_req");
569 569
570 dti_dti_connect_req (sndcp_data->hDTI, dti2_connect_req); 570 dti_dti_connect_req (sndcp_data->hDTI, dti2_connect_req);
571
572 /*
573 * FreeCalypso: the following code has been #if 0'ed out because
574 * (a) it fails compilation in the TCS211-like environment with that
575 * compiler version, (b) it is broken fundamentally in that one needs
576 * to call strcmp() or equivalent instead of comparing a pointer
577 * against a string literal, and (c) we are not doing in-baseband TCP/IP
578 * in FreeCalypso, hence it was easier to remove this code than to
579 * work out the correct fix.
580 */
581
582 #if 0
571 if ( sndcp_data->nsapi_neighbor_ra[sndcp_data->nsapi] EQ TCPIP_NAME) 583 if ( sndcp_data->nsapi_neighbor_ra[sndcp_data->nsapi] EQ TCPIP_NAME)
572 { 584 {
573 mg_dti_open(sndcp_data->nsapi); 585 mg_dti_open(sndcp_data->nsapi);
574 } 586 }
587 #endif
575 } 588 }
576 /* 589 /*
577 +------------------------------------------------------------------------------ 590 +------------------------------------------------------------------------------
578 | Function : sndcp_dti_dti_connect_res 591 | Function : sndcp_dti_dti_connect_res
579 +------------------------------------------------------------------------------ 592 +------------------------------------------------------------------------------