FreeCalypso > hg > fc-magnetite
changeset 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 | 9342a20d9d06 |
children | 2cf312e56ee7 |
files | src/g23m-gprs/sndcp/sndcp_pei.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 } /* +------------------------------------------------------------------------------