Commit dc7c9155 authored by Yang Tse's avatar Yang Tse
Browse files

Compilation fix

parent b7eeb6e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1162,7 +1162,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
  if(freeaddr)
    Curl_freeaddrinfo(addr);

  ftp->count1 = PORT;
  ftpc->count1 = PORT;

#endif /* end of ipv4-specific code */

+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@
#else
#define CURL_ASYNC_SUCCESS CURLE_OK
#define ares_cancel(x) do {} while(0)
#define ares_destroy(x) do {} while (0);
#define ares_destroy(x) do {} while(0)
#endif

/*
+4 −1
Original line number Diff line number Diff line
@@ -551,7 +551,10 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
  char *p, *q;
  int i;

  if (!conn->path || conn->path[0] != '/' ||
  if (!conn->data || 
      !conn->data->reqdata ||
      !conn->data->reqdata->path || 
       conn->data->reqdata->path[0] != '/' ||
      !checkprefix(conn->protostr, conn->data->change.url))
     return LDAP_INVALID_SYNTAX;

+1 −1
Original line number Diff line number Diff line
@@ -193,11 +193,11 @@ static void multistate(struct Curl_one_easy *easy, CURLMstate state)

  easy->state = state;

#ifdef CURLDEBUG
  if(easy->state > CURLM_STATE_CONNECT &&
     easy->state < CURLM_STATE_COMPLETED)
    index = easy->easy_conn->connectindex;

#ifdef CURLDEBUG
  infof(easy->easy_handle,
        "STATE: %s => %s handle %p; (connection #%d) \n",
        statename[oldstate], statename[easy->state],