Skip to content

Commit

Permalink
net_http: build fix for non-griffin builds
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Jan 22, 2025
1 parent d2727b0 commit ee4c6b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libretro-common/net/net_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <net/net_socket_ssl.h>
#endif
#include <compat/strl.h>
#include <features/features_cpu.h>
#include <string/stdstring.h>
#include <string.h>
#include <lists/string_list.h>
Expand Down Expand Up @@ -817,13 +818,12 @@ static void net_http_conn_pool_remove_expired(void)
{
char buf[4096];
bool error = false;
ssize_t recv;
#ifdef HAVE_SSL
if (entry->ssl && entry->ssl_ctx)
recv = ssl_socket_receive_all_nonblocking(entry->ssl_ctx, &error, buf, sizeof(buf));
ssl_socket_receive_all_nonblocking(entry->ssl_ctx, &error, buf, sizeof(buf));
else
#endif
recv = socket_receive_all_nonblocking(entry->fd, &error, buf, sizeof(buf));
socket_receive_all_nonblocking(entry->fd, &error, buf, sizeof(buf));

if (!error)
continue;
Expand Down Expand Up @@ -1549,7 +1549,7 @@ bool net_http_update(struct http_t *state, size_t* progress, size_t* total)
if (response->part != P_DONE)
return false;

for (newlen = 0; newlen < response->headers->size; newlen++)
for (newlen = 0; (size_t)newlen < response->headers->size; newlen++)
{
if (string_is_equal_case_insensitive(response->headers->elems[newlen].data, "connection: close"))
{
Expand Down

0 comments on commit ee4c6b1

Please sign in to comment.