summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-18 23:38:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-19 11:01:15 +0200
commitdfe5a3023b76b09d1c9aa070e19cbd84d1f2dba5 (patch)
tree7d5b9a0ded08ff7f68f77c9855160cb982ec2040
parentb9b6148c45a00d675d5bb261bf4cbb45468ad807 (diff)
downloadcurl-dfe5a3023b76b09d1c9aa070e19cbd84d1f2dba5.tar.gz
easyoptions: fix icc warning
easyoptions.c(360): error #188: enumerated type mixed with another type Ref: #9156 Reported-by: Matthew Thompson Closes #9176
-rw-r--r--lib/easyoptions.c2
-rw-r--r--lib/optiontable.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/easyoptions.c b/lib/easyoptions.c
index 78a7ade6c..412aefd99 100644
--- a/lib/easyoptions.c
+++ b/lib/easyoptions.c
@@ -357,7 +357,7 @@ struct curl_easyoption Curl_easyopts[] = {
{"XFERINFODATA", CURLOPT_XFERINFODATA, CURLOT_CBPTR, 0},
{"XFERINFOFUNCTION", CURLOPT_XFERINFOFUNCTION, CURLOT_FUNCTION, 0},
{"XOAUTH2_BEARER", CURLOPT_XOAUTH2_BEARER, CURLOT_STRING, 0},
- {NULL, CURLOPT_LASTENTRY, 0, 0} /* end of table */
+ {NULL, CURLOPT_LASTENTRY, CURLOT_LONG, 0} /* end of table */
};
#ifdef DEBUGBUILD
diff --git a/lib/optiontable.pl b/lib/optiontable.pl
index 31f8b0e3d..78ce58012 100644
--- a/lib/optiontable.pl
+++ b/lib/optiontable.pl
@@ -103,7 +103,7 @@ for my $name (sort @names) {
}
print <<FOOT
- {NULL, CURLOPT_LASTENTRY, 0, 0} /* end of table */
+ {NULL, CURLOPT_LASTENTRY, CURLOT_LONG, 0} /* end of table */
};
#ifdef DEBUGBUILD