[sr-dev] Compiler warnings on linux

Ovidiu Sas osas at voipembedded.com
Mon Mar 14 22:18:09 CET 2016


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

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com



More information about the sr-dev mailing list