summaryrefslogtreecommitdiff
path: root/https_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'https_server.h')
-rw-r--r--https_server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/https_server.h b/https_server.h
index 8f5381d..80fb77a 100644
--- a/https_server.h
+++ b/https_server.h
@@ -16,9 +16,9 @@ void clear_client_ip( client_info_t *clf ){
}
void https_server_event_loop( server_socket_t *sv, client_info_t *cl, server_config_t *svcfg, webhooks_data_t *wdata, http_request_data_t *http_req_data, log_file_t *logf ){
- int ev_count = 0;
+ int64_t ev_count = 0;
socklen_t cl_info_len = (socklen_t)sizeof( sv->client_info );
- while ( (ev_count = poll(sv->pstruct, 1, 0)) != -1 ){
+ while ( (ev_count = (int64_t)poll(sv->pstruct, 1, 0)) != -1 ){
if ( (ev_count > 0) && sv->pstruct->revents & POLLIN ){
sv->client_socket_fd = accept( sv->socket_fd, (struct sockaddr*)&sv->client_info, &cl_info_len );
if ( sv->client_socket_fd == -1 ){