]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/serial.c
g_get_monotonic_time() takes a signed int64
[libsigrok.git] / hardware / common / serial.c
index 5a1d21af90c4cbebc9a593847f7b0fe1634c51e2..bc837a3841f29e575eefa9ab5490cfe4ecf0475b 100644 (file)
@@ -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,
-                           uint64_t timeout_ms)
+                           gint64 timeout_ms)
 {
-       uint64_t start;
+       gint64 start;
        int maxlen, len;
 
        timeout_ms *= 1000;