oops, fix serial_flush()

This commit is contained in:
Bert Vermeulen 2010-08-12 06:04:44 +02:00
parent 06d64eb880
commit f0551a6543
2 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,7 @@ int serial_close(int fd)
int serial_flush(int fd)
{
tcflush(fd, TCIOFLUSH);
return tcflush(fd, TCIOFLUSH);
}
void *serial_backup_params(int fd)

View File

@ -429,6 +429,7 @@ int ezusb_upload_firmware(libusb_device *dev, int configuration,
GSList *list_serial_ports(void);
int serial_open(const char *pathname, int flags);
int serial_close(int fd);
int serial_flush(int fd);
void *serial_backup_params(int fd);
void serial_restore_params(int fd, void *backup);
int serial_set_params(int fd, int speed, int bits, int parity, int stopbits,