g_get_monotonic_time() takes a signed int64
This commit is contained in:
parent
74ac7d7f73
commit
b87f8504dc
|
@ -603,9 +603,9 @@ SR_PRIV int serial_set_paramstr(int fd, const char *paramstr)
|
||||||
}
|
}
|
||||||
|
|
||||||
SR_PRIV int serial_readline(int fd, char **buf, int *buflen,
|
SR_PRIV int serial_readline(int fd, char **buf, int *buflen,
|
||||||
uint64_t timeout_ms)
|
gint64 timeout_ms)
|
||||||
{
|
{
|
||||||
uint64_t start;
|
gint64 start;
|
||||||
int maxlen, len;
|
int maxlen, len;
|
||||||
|
|
||||||
timeout_ms *= 1000;
|
timeout_ms *= 1000;
|
||||||
|
|
|
@ -136,7 +136,7 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity,
|
||||||
int stopbits, int flowcontrol);
|
int stopbits, int flowcontrol);
|
||||||
SR_PRIV int serial_set_paramstr(int fd, const char *paramstr);
|
SR_PRIV int serial_set_paramstr(int fd, const char *paramstr);
|
||||||
SR_PRIV int serial_readline(int fd, char **buf, int *buflen,
|
SR_PRIV int serial_readline(int fd, char **buf, int *buflen,
|
||||||
uint64_t timeout_ms);
|
gint64 timeout_ms);
|
||||||
|
|
||||||
/*--- hardware/common/ezusb.c -----------------------------------------------*/
|
/*--- hardware/common/ezusb.c -----------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue