diff options
author | Anand Avati <avati@redhat.com> | 2012-08-22 02:10:36 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-08-22 10:02:42 -0700 |
commit | c48387d8e43f83b06acf329ece6c0278a7911d1e (patch) | |
tree | 3599264122bb0a25bd45e3f295bb3927e92ae3ee | |
parent | 49ba15d599a8979d1d3df7a39204d52081d8719e (diff) |
epoll: whitespace cleanup and remove unused variable
Change-Id: Idd7269f8b3a6dfaf931b378128eff93088b3be73
BUG: 821087
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/3841
Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r-- | libglusterfs/src/event.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/libglusterfs/src/event.h b/libglusterfs/src/event.h index f2f8029aeaa..7ed182492e2 100644 --- a/libglusterfs/src/event.h +++ b/libglusterfs/src/event.h @@ -21,8 +21,8 @@ struct event_pool; struct event_ops; struct event_data { - int fd; - int idx; + int fd; + int idx; } __attribute__ ((__packed__, __may_alias__)); @@ -30,28 +30,27 @@ typedef int (*event_handler_t) (int fd, int idx, void *data, int poll_in, int poll_out, int poll_err); struct event_pool { - struct event_ops *ops; + struct event_ops *ops; - int fd; - int breaker[2]; + int fd; + int breaker[2]; - int count; - struct { - int fd; - int events; - void *data; - event_handler_t handler; - } *reg; + int count; + struct { + int fd; + int events; + void *data; + event_handler_t handler; + } *reg; - int used; - int idx_cache; - int changed; + int used; + int changed; - pthread_mutex_t mutex; - pthread_cond_t cond; + pthread_mutex_t mutex; + pthread_cond_t cond; - void *evcache; - int evcache_size; + void *evcache; + int evcache_size; }; struct event_ops { |