Module: kamailio Branch: master Commit: ccb368e6420c1e4849867bcdbd136d0e9a8db67d URL: https://github.com/kamailio/kamailio/commit/ccb368e6420c1e4849867bcdbd136d0e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-06-30T10:30:51+02:00
core: parse fline - cast number to char for print to avoid compile warning
---
Modified: src/core/parser/parse_fline.c
---
Diff: https://github.com/kamailio/kamailio/commit/ccb368e6420c1e4849867bcdbd136d0e... Patch: https://github.com/kamailio/kamailio/commit/ccb368e6420c1e4849867bcdbd136d0e...
---
diff --git a/src/core/parser/parse_fline.c b/src/core/parser/parse_fline.c index 5b2d346f12..04758b2751 100644 --- a/src/core/parser/parse_fline.c +++ b/src/core/parser/parse_fline.c @@ -248,7 +248,7 @@ char* parse_first_line(char* buffer, unsigned int len, struct msg_start* fl) if (prn) { for (t=0; t<offset; t++) if (*(buffer+t)) *(prn+t)=*(buffer+t); - else *(prn+t)=176; /* '°' */ + else *(prn+t)=(char)176; /* '°' */ LOG(L_DBG, "parsed so far: %.*s\n", offset, ZSW(prn) ); pkg_free( prn ); };