qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject qpid-proton git commit: NO-JIRA: Make pn_strcasecmp() etc. work correctly with 8 bit chars.
Date Fri, 08 May 2015 20:54:05 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master fa52f4e71 -> 30efcdbea


NO-JIRA: Make pn_strcasecmp() etc. work correctly with 8 bit chars.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/30efcdbe
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/30efcdbe
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/30efcdbe

Branch: refs/heads/master
Commit: 30efcdbea5015e03d77b388d8c0a6979a2392325
Parents: fa52f4e
Author: Andrew Stitcher <astitcher@apache.org>
Authored: Fri May 8 16:53:16 2015 -0400
Committer: Andrew Stitcher <astitcher@apache.org>
Committed: Fri May 8 16:53:16 2015 -0400

----------------------------------------------------------------------
 proton-c/src/util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/30efcdbe/proton-c/src/util.c
----------------------------------------------------------------------
diff --git a/proton-c/src/util.c b/proton-c/src/util.c
index 2b560a6..e2c6727 100644
--- a/proton-c/src/util.c
+++ b/proton-c/src/util.c
@@ -214,7 +214,7 @@ void pni_fatal(const char *fmt, ...)
 
 int pn_strcasecmp(const char *a, const char *b)
 {
-  char diff;
+  int diff;
   while (*b) {
     diff = tolower(*a++)-tolower(*b++);
     if ( diff!=0 ) return diff;
@@ -224,7 +224,7 @@ int pn_strcasecmp(const char *a, const char *b)
 
 int pn_strncasecmp(const char* a, const char* b, size_t len)
 {
-  char diff = 0;
+  int diff = 0;
   while (*b && len > 0) {
     diff = tolower(*a++)-tolower(*b++);
     if ( diff!=0 ) return diff;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message