You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2015/10/01 15:46:06 UTC

[2/2] qpid-dispatch git commit: DISPATCH-159 - Remove the name of the separator from the separator constant.

DISPATCH-159 - Remove the name of the separator from the separator constant.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/96affd96
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/96affd96
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/96affd96

Branch: refs/heads/master
Commit: 96affd96b2837fb7ab90eeeba6e14ca7897c4b7d
Parents: 839cc0e
Author: Ted Ross <tr...@redhat.com>
Authored: Thu Oct 1 09:44:52 2015 -0400
Committer: Ted Ross <tr...@redhat.com>
Committed: Thu Oct 1 09:44:52 2015 -0400

----------------------------------------------------------------------
 src/iterator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/96affd96/src/iterator.c
----------------------------------------------------------------------
diff --git a/src/iterator.c b/src/iterator.c
index 43efb8d..da12347 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -87,7 +87,7 @@ typedef enum {
 static char *my_area    = "";
 static char *my_router  = "";
 
-const char SEPARATOR_DOT = '.';
+const char SEPARATOR    = '.';
 
 const uint32_t HASH_INIT = 5381;
 
@@ -275,7 +275,7 @@ static void view_initialize(qd_field_iterator_t *iter)
 
     if (iter->view == ITER_VIEW_ADDRESS_HASH) {
         iter->mode = MODE_TO_END;
-        qd_address_iterator_check_trailing_octet(iter, SEPARATOR_DOT);
+        qd_address_iterator_check_trailing_octet(iter, SEPARATOR);
         parse_address_view(iter);
         return;
     }
@@ -699,7 +699,7 @@ void qd_iterator_hash_segments(qd_field_iterator_t *iter)
         octet = qd_field_iterator_octet(iter);
         segment_length += 1;
 
-        if (octet == SEPARATOR_DOT) {
+        if (octet == SEPARATOR) {
             qd_insert_hash_segment(iter, &hash, segment_length-1);
         }
 


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