diff --git a/sources/backend.c b/sources/backend.c index 01ff718b..a78fb817 100644 --- a/sources/backend.c +++ b/sources/backend.c @@ -361,7 +361,8 @@ int od_backend_connect_cancel(od_server_t *server, return 0; } -int od_backend_ready_wait(od_server_t *server, char *context, int count, int time_ms) +int od_backend_ready_wait(od_server_t *server, char *context, int count, + uint32_t time_ms) { od_instance_t *instance = server->system->instance; diff --git a/sources/backend.h b/sources/backend.h index f5862f86..af402c05 100644 --- a/sources/backend.h +++ b/sources/backend.h @@ -13,7 +13,7 @@ void od_backend_close(od_server_t*); int od_backend_terminate(od_server_t*); void od_backend_error(od_server_t*, char*, char*, int); int od_backend_ready(od_server_t*, char*, char*, int); -int od_backend_ready_wait(od_server_t*, char*, int, int); +int od_backend_ready_wait(od_server_t*, char*, int, uint32_t); int od_backend_query(od_server_t*, char*, char*, int); #endif /* OD_BACKEND_H */ diff --git a/sources/io.c b/sources/io.c index 9630a2f3..983dba4c 100644 --- a/sources/io.c +++ b/sources/io.c @@ -25,7 +25,7 @@ #include "sources/logger.h" #include "sources/io.h" -int od_read(machine_io_t *io, shapito_stream_t *stream, int time_ms) +int od_read(machine_io_t *io, shapito_stream_t *stream, uint32_t time_ms) { uint32_t request_start = shapito_stream_used(stream); uint32_t request_size = 0; diff --git a/sources/io.h b/sources/io.h index 204d60fe..d2932e1b 100644 --- a/sources/io.h +++ b/sources/io.h @@ -7,7 +7,7 @@ * Advanced PostgreSQL connection pooler. */ -int od_read(machine_io_t*, shapito_stream_t*, int); +int od_read(machine_io_t*, shapito_stream_t*, uint32_t); int od_write(machine_io_t*, shapito_stream_t*); int od_getaddrname(struct addrinfo*, char*, int, int, int); int od_getpeername(machine_io_t*, char*, int, int, int);