odissey: set correct time type

This commit is contained in:
Dmitry Simonenko 2018-01-26 16:50:17 +03:00
parent 6dacad6fcb
commit 08a6c30f16
4 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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 */

View File

@ -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;

View File

@ -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);