summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-06-03 20:34:26 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-06-03 20:34:26 +0000
commit1a38041830dc7a7db3f16f093542026080e1ae7d (patch)
treece7a459f67c105d50162fcd6ee13a768eead107e
parent61d295f18740695b3840440855a0ca0b928ebb95 (diff)
Replace '\"' with '"'.
The escape is unnecessary, and makes a bad example to people reading the code. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 80820687a..3031c7928 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7541,7 +7541,7 @@ static int check_via(struct sip_pvt *p, struct sip_request *req)
static char *get_calleridname(const char *input, char *output, size_t outputsize)
{
const char *end = strchr(input,'<'); /* first_bracket */
- const char *tmp = strchr(input,'\"'); /* first quote */
+ const char *tmp = strchr(input,'"'); /* first quote */
int bytes = 0;
int maxbytes = outputsize - 1;
@@ -7553,7 +7553,7 @@ static char *get_calleridname(const char *input, char *output, size_t outputsize
/* we found "name" */
if (tmp && tmp < end) {
- end = strchr(tmp+1, '\"');
+ end = strchr(tmp+1, '"');
if (!end)
return NULL;
bytes = (int) (end - tmp);
@@ -9714,7 +9714,7 @@ static int reply_digest(struct sip_pvt *p, struct sip_request *req,
continue;
/* Found. Skip keyword, take text in quotes or up to the separator. */
c += strlen(i->key);
- if (*c == '\"') {
+ if (*c == '"') {
src = ++c;
separator = "\"";
} else {