mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fixed a compile warning introduced by making the protocol table const. This
involves a binary-compatible change to the API struct curl_version_info_data
This commit is contained in:
parent
80d301257c
commit
327b46cced
@ -1337,7 +1337,7 @@ typedef enum {
|
|||||||
/* The 'CURLVERSION_NOW' is the symbolic name meant to be used by
|
/* The 'CURLVERSION_NOW' is the symbolic name meant to be used by
|
||||||
basicly all programs ever, that want to get version information. It is
|
basicly all programs ever, that want to get version information. It is
|
||||||
meant to be a built-in version number for what kind of struct the caller
|
meant to be a built-in version number for what kind of struct the caller
|
||||||
expects. If the struct ever changes, we redfine the NOW to another enum
|
expects. If the struct ever changes, we redefine the NOW to another enum
|
||||||
from above. */
|
from above. */
|
||||||
#define CURLVERSION_NOW CURLVERSION_THIRD
|
#define CURLVERSION_NOW CURLVERSION_THIRD
|
||||||
|
|
||||||
@ -1347,11 +1347,11 @@ typedef struct {
|
|||||||
unsigned int version_num; /* LIBCURL_VERSION_NUM */
|
unsigned int version_num; /* LIBCURL_VERSION_NUM */
|
||||||
const char *host; /* OS/host/cpu/machine when configured */
|
const char *host; /* OS/host/cpu/machine when configured */
|
||||||
int features; /* bitmask, see defines below */
|
int features; /* bitmask, see defines below */
|
||||||
char *ssl_version; /* human readable string */
|
const char *ssl_version; /* human readable string */
|
||||||
long ssl_version_num; /* number */
|
long ssl_version_num; /* number */
|
||||||
const char *libz_version; /* human readable string */
|
const char *libz_version; /* human readable string */
|
||||||
/* protocols is terminated by an entry with a NULL protoname */
|
/* protocols is terminated by an entry with a NULL protoname */
|
||||||
const char **protocols;
|
const char * const *protocols;
|
||||||
|
|
||||||
/* The fields below this were added in CURLVERSION_SECOND */
|
/* The fields below this were added in CURLVERSION_SECOND */
|
||||||
const char *ares;
|
const char *ares;
|
||||||
|
@ -2023,7 +2023,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
{
|
{
|
||||||
const char **proto;
|
const char * const *proto;
|
||||||
|
|
||||||
printf(CURL_ID "%s\n", curl_version());
|
printf(CURL_ID "%s\n", curl_version());
|
||||||
if (curlinfo->protocols) {
|
if (curlinfo->protocols) {
|
||||||
|
Loading…
Reference in New Issue
Block a user