mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:43:38 +03:00
lib: make Curl_easyopts const
Also, make the optiontable rule work in an out-of-tree build. Closes #16950
This commit is contained in:
parent
9f4f61ddcb
commit
9ba597bed7
5 changed files with 6 additions and 6 deletions
|
|
@ -29,12 +29,12 @@
|
|||
#ifndef CURL_DISABLE_GETOPTIONS
|
||||
|
||||
/* Lookups easy options at runtime */
|
||||
static struct curl_easyoption *lookup(const char *name, CURLoption id)
|
||||
static const struct curl_easyoption *lookup(const char *name, CURLoption id)
|
||||
{
|
||||
DEBUGASSERT(name || id);
|
||||
DEBUGASSERT(!Curl_easyopts_check());
|
||||
if(name || id) {
|
||||
struct curl_easyoption *o = &Curl_easyopts[0];
|
||||
const struct curl_easyoption *o = &Curl_easyopts[0];
|
||||
do {
|
||||
if(name) {
|
||||
if(strcasecompare(o->name, name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue