You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/11/17 21:38:03 UTC
qpid-dispatch git commit: DISPATCH 569: Dispatch does not compile due
to new pn_event_type_t enum values
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 362cceecc -> 02ffd44d3
DISPATCH 569: Dispatch does not compile due to new pn_event_type_t enum values
Replace the (large) number of explicit empty cases in pn_event_handler with an
empty default case. The explicit empty cases served no purpose and make dispatch
brittle to proton changes.
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/02ffd44d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/02ffd44d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/02ffd44d
Branch: refs/heads/master
Commit: 02ffd44d3ea1aaf5435692044e36564a5d6477d6
Parents: 362ccee
Author: Alan Conway <ac...@redhat.com>
Authored: Thu Nov 17 16:21:49 2016 -0500
Committer: Alan Conway <ac...@redhat.com>
Committed: Thu Nov 17 16:37:42 2016 -0500
----------------------------------------------------------------------
src/container.c | 34 ++--------------------------------
1 file changed, 2 insertions(+), 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/02ffd44d/src/container.c
----------------------------------------------------------------------
diff --git a/src/container.c b/src/container.c
index fd61418..7abc3b2 100644
--- a/src/container.c
+++ b/src/container.c
@@ -527,39 +527,9 @@ int pn_event_handler(void *handler_context, void *conn_context, pn_event_t *even
}
break;
- case PN_EVENT_NONE :
- case PN_REACTOR_INIT :
- case PN_REACTOR_QUIESCED :
- case PN_REACTOR_FINAL :
- case PN_TIMER_TASK :
- case PN_CONNECTION_INIT :
- case PN_CONNECTION_BOUND :
- case PN_CONNECTION_UNBOUND :
- case PN_CONNECTION_LOCAL_OPEN :
- case PN_CONNECTION_LOCAL_CLOSE :
- case PN_CONNECTION_FINAL :
- case PN_SESSION_INIT :
- case PN_SESSION_LOCAL_OPEN :
- case PN_SESSION_FINAL :
- case PN_LINK_INIT :
- case PN_LINK_LOCAL_OPEN :
- case PN_LINK_FINAL :
- case PN_TRANSPORT :
- case PN_TRANSPORT_ERROR :
- case PN_TRANSPORT_HEAD_CLOSED :
- case PN_TRANSPORT_TAIL_CLOSED :
- case PN_TRANSPORT_CLOSED :
- case PN_TRANSPORT_AUTHENTICATED :
- case PN_SELECTABLE_INIT :
- case PN_SELECTABLE_UPDATED :
- case PN_SELECTABLE_READABLE :
- case PN_SELECTABLE_WRITABLE :
- case PN_SELECTABLE_ERROR :
- case PN_SELECTABLE_EXPIRED :
- case PN_SELECTABLE_FINAL :
- break;
+ default:
+ break;
}
-
return 1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org