diff options
author | Milind Changire <mchangir@redhat.com> | 2019-02-15 14:20:07 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2019-03-02 11:54:24 +0000 |
commit | 4cb1d6d94ac85c5e79171f8989b545ca098b61d9 (patch) | |
tree | 2d6a178aa17a6785812a5ddec1bd21feac9f810c /cli/src | |
parent | cd6795c5e8ebdf23c6fd350d8df49e5b22b09056 (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:
> Change-Id: I70dc2c57f12b7ea2fae41120f71aa0d7fe0b2b6f
> Fixes: bz#1651246
> Signed-off-by: Milind Changire <mchangir@redhat.com>
> Reviewed-on: https://review.gluster.org/c/glusterfs/+/22221
Change-Id: I70dc2c57f12b7ea2fae41120f71aa0d7fe0b2b6f
Fixes: bz#1683900
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 776ba851c6ee6c265253d44cf1d6e4e3d4a21772)
Diffstat (limited to 'cli/src')
-rw-r--r-- | cli/src/cli-rl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c index 6255929e6d2..b6f87b189aa 100644 --- a/cli/src/cli-rl.c +++ b/cli/src/cli-rl.c @@ -102,7 +102,7 @@ cli_rl_process_line(char *line) state->rl_processing = 0; } -int +void cli_rl_stdin(int fd, int idx, int gen, void *data, int poll_out, int poll_in, int poll_err, char event_thread_died) { @@ -114,7 +114,7 @@ cli_rl_stdin(int fd, int idx, int gen, void *data, int poll_out, int poll_in, event_handled(state->ctx->event_pool, fd, idx, gen); - return 0; + return; } char * |