# HG changeset patch # User Mychaela Falconia # Date 1476407687 0 # Node ID a04cde1fb771c8cc93060d53d00d8885de0c54cf # Parent 9342a20d9d061bc66dc184f15c572f0904bf9ca9 src/g23m-gprs/sndcp/sndcp_pei.c: removed compilation-failing broken code, see the comment added inside diff -r 9342a20d9d06 -r a04cde1fb771 src/g23m-gprs/sndcp/sndcp_pei.c --- a/src/g23m-gprs/sndcp/sndcp_pei.c Fri Oct 14 01:03:00 2016 +0000 +++ b/src/g23m-gprs/sndcp/sndcp_pei.c Fri Oct 14 01:14:47 2016 +0000 @@ -568,10 +568,23 @@ TRACE_FUNCTION ("sndcp_dti_dti_connect_req"); dti_dti_connect_req (sndcp_data->hDTI, dti2_connect_req); + +/* + * FreeCalypso: the following code has been #if 0'ed out because + * (a) it fails compilation in the TCS211-like environment with that + * compiler version, (b) it is broken fundamentally in that one needs + * to call strcmp() or equivalent instead of comparing a pointer + * against a string literal, and (c) we are not doing in-baseband TCP/IP + * in FreeCalypso, hence it was easier to remove this code than to + * work out the correct fix. + */ + +#if 0 if ( sndcp_data->nsapi_neighbor_ra[sndcp_data->nsapi] EQ TCPIP_NAME) { mg_dti_open(sndcp_data->nsapi); } +#endif } /* +------------------------------------------------------------------------------