summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/gf-event.h
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2019-02-23 18:58:48 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2019-02-25 15:23:11 +0000
commit155ebe4b5719f40b3feaf9fd8ff892cc10ad0e78 (patch)
treeecbc9f2e88f385ff6b8f7f357b1678601b520c11 /libglusterfs/src/gf-event.h
parent2620dbccccb63fba66384b17b47ddd8e784e8390 (diff)
socket: socket event handlers now return void
Problem: Returning any value from socket event handlers to the event sub-system doesn't make sense since event sub-system cannot handle socket sub-system errors. Solution: Change return type of all socket event handlers to 'void' mainline: > Reviewed-on: https://review.gluster.org/c/glusterfs/+/22221 Change-Id: I70dc2c57f12b7ea2fae41120f71aa0d7fe0b2b6f Fixes: bz#1651246 Signed-off-by: Milind Changire <mchangir@redhat.com> (cherry picked from commit 776ba851c6ee6c265253d44cf1d6e4e3d4a21772)
Diffstat (limited to 'libglusterfs/src/gf-event.h')
-rw-r--r--libglusterfs/src/gf-event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/gf-event.h b/libglusterfs/src/gf-event.h
index 5c3724cc953..49aa45d169a 100644
--- a/libglusterfs/src/gf-event.h
+++ b/libglusterfs/src/gf-event.h
@@ -22,8 +22,8 @@ struct event_data {
int gen;
} __attribute__((__packed__, __may_alias__));
-typedef int (*event_handler_t)(int fd, int idx, int gen, void *data,
- int poll_in, int poll_out, int poll_err);
+typedef void (*event_handler_t)(int fd, int idx, int gen, void *data,
+ int poll_in, int poll_out, int poll_err);
#define EVENT_EPOLL_TABLES 1024
#define EVENT_EPOLL_SLOTS 1024