Commit 14e8b13a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

lib582: use curl_socket_t for portability

parent 36cb24ec
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -164,7 +164,8 @@ static int getMicroSecondTimeout(struct timeval* timeout)
/**
 * Update a fd_set with all of the sockets in use.
 */
static void updateFdSet(struct Sockets* sockets, fd_set* fdset, int* maxFd)
static void updateFdSet(struct Sockets* sockets, fd_set* fdset,
                        curl_socket_t *maxFd)
{
  int i;
  for (i = 0; i < sockets->count; ++i) {
@@ -306,7 +307,7 @@ int test(char *URL)
  while (!checkForCompletion(m, &success))
  {
    fd_set readSet, writeSet;
    int maxFd = 0;
    curl_socket_t maxFd = 0;
    struct timeval tv = {10, 0};

    if (tutil_tvdiff(tutil_tvnow(), ml_start) >