From c48387d8e43f83b06acf329ece6c0278a7911d1e Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 22 Aug 2012 02:10:36 -0700 Subject: epoll: whitespace cleanup and remove unused variable Change-Id: Idd7269f8b3a6dfaf931b378128eff93088b3be73 BUG: 821087 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/3841 Tested-by: Gluster Build System --- libglusterfs/src/event.h | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/event.h b/libglusterfs/src/event.h index f2f8029a..7ed18249 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 { -- cgit