[sr-dev] Compiler warnings on linux

Ovidiu Sas osas at voipembedded.com
Tue Mar 15 14:28:50 CET 2016


Don't forget to backport.

Thanks,
Ovidiu
On Mar 15, 2016 8:01 AM, "Daniel-Constantin Mierla" <miconda at gmail.com>
wrote:

> Thanks, shifted some code in master to get the functions in the core and
> reuse them.
>
> Cheers,
> Daniel
>
> On 14/03/16 22:18, Ovidiu Sas wrote:
> > tps_msg.c: In function "tps_pack_request":
> > tps_msg.c:384:5: warning: implicit declaration of function "strnstr"
> > [-Wimplicit-function-declaration]
> >      if(strnstr(ptsd->bs_contact.s, ";r2=on",
> >      ^
> >
> > strnstr is not available on linux.
> > A local implementation exists in tm/t_msgbuilder.c: _strnstr
> > Another one in sdpops/sdpops_mod.c: strnistr
> > Probably there should be one single implementation in core available
> > for all modules.
> >
> > -ovidiu
> >
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio World Conference, Berlin, May 18-20, 2016 -
> http://www.kamailioworld.com
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160315/38e9a1e8/attachment.html>


More information about the sr-dev mailing list