1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

unix: make select_result() return void.

Nothing was using its return value anyway.
This commit is contained in:
Ben Harris 2016-05-30 22:37:32 +01:00
parent 95f81227a2
commit 30cdaa7ca8
2 changed files with 3 additions and 5 deletions

View File

@ -183,7 +183,7 @@ void uxsel_init(void);
typedef int (*uxsel_callback_fn)(int fd, int event); typedef int (*uxsel_callback_fn)(int fd, int event);
void uxsel_set(int fd, int rwx, uxsel_callback_fn callback); void uxsel_set(int fd, int rwx, uxsel_callback_fn callback);
void uxsel_del(int fd); void uxsel_del(int fd);
int select_result(int fd, int event); void select_result(int fd, int event);
int first_fd(int *state, int *rwx); int first_fd(int *state, int *rwx);
int next_fd(int *state, int *rwx); int next_fd(int *state, int *rwx);
/* The following are expected to be provided _to_ uxsel.c by the frontend */ /* The following are expected to be provided _to_ uxsel.c by the frontend */

View File

@ -111,7 +111,7 @@ int first_fd(int *state, int *rwx)
return next_fd(state, rwx); return next_fd(state, rwx);
} }
int select_result(int fd, int event) void select_result(int fd, int event)
{ {
struct fd *fdstruct = find234(fds, &fd, uxsel_fd_findcmp); struct fd *fdstruct = find234(fds, &fd, uxsel_fd_findcmp);
/* /*
@ -120,7 +120,5 @@ int select_result(int fd, int event)
* fd I've stopped being interested in. Sigh. * fd I've stopped being interested in. Sigh.
*/ */
if (fdstruct) if (fdstruct)
return fdstruct->callback(fd, event); fdstruct->callback(fd, event);
else
return 1;
} }