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

fix compiler warning: enumerated type mixed with another type

parent 1bb04927
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2463,7 +2463,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
    break;

  case CURLOPT_WILDCARDMATCH:
    data->set.wildcardmatch = !! va_arg(param, long);
    data->set.wildcardmatch = (bool)(0 != va_arg(param, long));
    break;
  case CURLOPT_CHUNK_BGN_FUNCTION:
    data->set.chunk_bgn = va_arg(param, curl_chunk_bgn_callback);
+2 −2
Original line number Diff line number Diff line
@@ -2406,12 +2406,12 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
        config->ftp_pret = toggle;
        break;
      case 'D': /* --proto */
        config->proto_present = 1;
        config->proto_present = TRUE;
        if(proto2num(config, &config->proto, nextarg))
          return PARAM_BAD_USE;
        break;
      case 'E': /* --proto-redir */
        config->proto_redir_present = 1;
        config->proto_redir_present = TRUE;
        if(proto2num(config, &config->proto_redir, nextarg))
          return PARAM_BAD_USE;
        break;