You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cl...@apache.org on 2020/04/23 05:22:39 UTC

[qpid-proton] 09/09: PROTON-2130: swap include file ordering for PROTON-2195/2196, trim trailing whitespace

This is an automated email from the ASF dual-hosted git repository.

cliffjansen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit 72635e3e882266be5a9c479bb4cfc1fb92b9d694
Author: Cliff Jansen <cl...@apache.org>
AuthorDate: Wed Apr 22 22:21:21 2020 -0700

    PROTON-2130: swap include file ordering for PROTON-2195/2196, trim trailing whitespace
---
 c/src/proactor/epoll.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/c/src/proactor/epoll.c b/c/src/proactor/epoll.c
index 2eb1ac2..baf1638 100644
--- a/c/src/proactor/epoll.c
+++ b/c/src/proactor/epoll.c
@@ -43,8 +43,8 @@
  already running.  The context will know if it needs to put itself back on the wake list
  to be runnable later to process the pending events.
 
- Lock ordering - never add locks right to left: 
-    context -> sched -> wake  
+ Lock ordering - never add locks right to left:
+    context -> sched -> wake
     non-proactor-context -> proactor-context
     tslot -> sched
  */
@@ -57,8 +57,8 @@
 /* Avoid GNU extensions, in particular the incompatible alternative strerror_r() */
 #undef _GNU_SOURCE
 
-#include "epoll-internal.h"
 #include "proactor-internal.h"
+#include "epoll-internal.h"
 #include "core/engine-internal.h"
 #include "core/logger_private.h"
 #include "core/util.h"
@@ -700,9 +700,6 @@ static void proactor_add(pcontext_t *ctx);
 static bool proactor_remove(pcontext_t *ctx);
 static void poller_done(struct pn_proactor_t* p, tslot_t *ts);
 
-// Type safe version of containerof
-#define containerof(ptr, type, member) ((type *)((char *)(1 ? (ptr) : &((type *)0)->member) - offsetof(type, member)))
-
 static inline pconnection_t *psocket_pconnection(psocket_t* ps) {
   return ps->epoll_io.type == PCONNECTION_IO ? containerof(ps, pconnection_t, psocket) : NULL;
 }
@@ -2815,7 +2812,6 @@ pn_event_batch_t *pn_proactor_get(struct pn_proactor_t* p) {
 
 // Call with no locks
 static inline void check_earmark_override(pn_proactor_t *p, tslot_t *ts) {
-  
   if (!ts || !ts->earmark_override)
     return;
   if (ts->earmark_override->generation == ts->earmark_override_gen) {


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