From dc9e415602c32bb575b58422f52965c5d741fda3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 30 Sep 2002 19:51:05 +0000 Subject: get an argument and add a 'age' field to the struct --- lib/version.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'lib/version.c') 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; } -- cgit v1.2.3