aboutsummaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-30 19:51:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-30 19:51:05 +0000
commitdc9e415602c32bb575b58422f52965c5d741fda3 (patch)
tree4437c5f5caafc49df81c4823f374b41fbb37b468 /lib/version.c
parent84fa12c8853a45ee0f043326f0f6689d470fb1bd (diff)
get an argument and add a 'age' field to the struct
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/lib/version.c b/lib/version.c
index 33cea4619..41a71bfcc 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -122,39 +122,40 @@ char *curl_version(void)
static const char *protocols[] = {
#ifndef CURL_DISABLE_FTP
- { "ftp" },
+ "ftp",
#endif
#ifndef CURL_DISABLE_GOPHER
- { "gopher" },
+ "gopher",
#endif
#ifndef CURL_DISABLE_TELNET
- { "telnet" },
+ "telnet",
#endif
#ifndef CURL_DISABLE_DICT
- { "dict" },
+ "dict",
#endif
#ifndef CURL_DISABLE_LDAP
- { "ldap" },
+ "ldap",
#endif
#ifndef CURL_DISABLE_HTTP
- { "http" },
+ "http",
#endif
#ifndef CURL_DISABLE_FILE
- { "file" },
+ "file",
#endif
#ifdef USE_SSLEAY
#ifndef CURL_DISABLE_HTTP
- { "https" },
+ "https",
#endif
#ifndef CURL_DISABLE_FTP
- { "ftps" },
+ "ftps",
#endif
#endif
- { NULL }
+ NULL
};
static curl_version_info_data version_info = {
+ CURLVERSION_FIRST,
LIBCURL_VERSION,
LIBCURL_VERSION_NUM,
OS, /* as found by configure or set by hand at build-time */
@@ -178,7 +179,7 @@ static curl_version_info_data version_info = {
protocols
};
-curl_version_info_data *curl_version_info(void)
+curl_version_info_data *curl_version_info(CURLversion stamp)
{
#ifdef USE_SSLEAY
static char ssl_buffer[80];
@@ -194,6 +195,7 @@ curl_version_info_data *curl_version_info(void)
version_info.libz_version = zlibVersion();
/* libz left NULL if non-existing */
#endif
+ (void)stamp; /* avoid compiler warnings, we don't use this */
return &version_info;
}