mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
unix: make select_result() return void.
Nothing was using its return value anyway.
This commit is contained in:
parent
95f81227a2
commit
30cdaa7ca8
@ -183,7 +183,7 @@ void uxsel_init(void);
|
||||
typedef int (*uxsel_callback_fn)(int fd, int event);
|
||||
void uxsel_set(int fd, int rwx, uxsel_callback_fn callback);
|
||||
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 next_fd(int *state, int *rwx);
|
||||
/* The following are expected to be provided _to_ uxsel.c by the frontend */
|
||||
|
@ -111,7 +111,7 @@ int first_fd(int *state, int *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);
|
||||
/*
|
||||
@ -120,7 +120,5 @@ int select_result(int fd, int event)
|
||||
* fd I've stopped being interested in. Sigh.
|
||||
*/
|
||||
if (fdstruct)
|
||||
return fdstruct->callback(fd, event);
|
||||
else
|
||||
return 1;
|
||||
fdstruct->callback(fd, event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user