Module: sip-router
Branch: master
Commit: a5af9eccf88a7696a5b3519da4651859f4a354f9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a5af9ec…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Oct 1 11:25:43 2009 +0200
uac: use signed char (minor fix)
On some platform/compiler combination char can be unsigned by
default (e.g. gcc arm and ppc) => use signed char when comparing
it with 0.
---
modules_k/uac/from.c | 2 +-
modules_s/uac/from.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/uac/from.c b/modules_k/uac/from.c
index dc3bbcb..4657e11 100644
--- a/modules_k/uac/from.c
+++ b/modules_k/uac/from.c
@@ -123,7 +123,7 @@ static inline int decode_from( str *src , str *dst)
int idx;
int end;
int i,j;
- char c;
+ signed char c;
/* Count '-' at end and disregard them */
for( n=0,i=src->len-1; src->s[i]=='-'; i--)
diff --git a/modules_s/uac/from.c b/modules_s/uac/from.c
index e9e3243..f7abf88 100644
--- a/modules_s/uac/from.c
+++ b/modules_s/uac/from.c
@@ -110,7 +110,7 @@ static inline int decode_from( str *src , str *dst)
int idx;
int end;
int i,j;
- char c;
+ signed char c;
/* Count '-' at end and disregard them */
for( n=0,i=src->len-1; src->s[i]=='-'; i--)