mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
unix: make uxsel callback functions return void.
Nothing used their return values anyway. At least, not after the previous commit.
This commit is contained in:
12
unix/uxser.c
12
unix/uxser.c
@ -56,7 +56,7 @@ static int serial_find_by_fd(void *av, void *bv)
|
||||
|
||||
static tree234 *serial_by_fd = NULL;
|
||||
|
||||
static int serial_select_result(int fd, int event);
|
||||
static void serial_select_result(int fd, int event);
|
||||
static void serial_uxsel_setup(Serial serial);
|
||||
static void serial_try_write(Serial serial);
|
||||
|
||||
@ -366,7 +366,7 @@ static void serial_reconfig(void *handle, Conf *conf)
|
||||
serial_configure(serial, conf);
|
||||
}
|
||||
|
||||
static int serial_select_result(int fd, int event)
|
||||
static void serial_select_result(int fd, int event)
|
||||
{
|
||||
Serial serial;
|
||||
char buf[4096];
|
||||
@ -376,7 +376,7 @@ static int serial_select_result(int fd, int event)
|
||||
serial = find234(serial_by_fd, &fd, serial_find_by_fd);
|
||||
|
||||
if (!serial)
|
||||
return 1; /* spurious event; keep going */
|
||||
return; /* spurious event; keep going */
|
||||
|
||||
if (event == 1) {
|
||||
ret = read(serial->fd, buf, sizeof(buf));
|
||||
@ -391,11 +391,11 @@ static int serial_select_result(int fd, int event)
|
||||
} else if (ret < 0) {
|
||||
#ifdef EAGAIN
|
||||
if (errno == EAGAIN)
|
||||
return 1; /* spurious */
|
||||
return; /* spurious */
|
||||
#endif
|
||||
#ifdef EWOULDBLOCK
|
||||
if (errno == EWOULDBLOCK)
|
||||
return 1; /* spurious */
|
||||
return; /* spurious */
|
||||
#endif
|
||||
perror("read serial port");
|
||||
exit(1);
|
||||
@ -417,8 +417,6 @@ static int serial_select_result(int fd, int event)
|
||||
|
||||
notify_remote_exit(serial->frontend);
|
||||
}
|
||||
|
||||
return !finished;
|
||||
}
|
||||
|
||||
static void serial_uxsel_setup(Serial serial)
|
||||
|
Reference in New Issue
Block a user