fixed --version switch

This commit is contained in:
Fufu Fang 2022-04-23 02:49:16 +01:00
parent 66776261ca
commit d2207e7a4e
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
2 changed files with 2 additions and 5 deletions

View File

@ -70,7 +70,4 @@ void Config_init(void)
CONFIG.sonic_id3 = 0; CONFIG.sonic_id3 = 0;
CONFIG.sonic_insecure = 0; CONFIG.sonic_insecure = 0;
/*---------- Print version number -----------*/
print_version();
} }

View File

@ -59,10 +59,10 @@ print_actual_message: {
void print_version() void print_version()
{ {
/* FUSE prints its help to stderr */ /* FUSE prints its help to stderr */
lprintf(info, "HTTPDirFS version " VERSION "\n"); fprintf(stderr, "HTTPDirFS version " VERSION "\n");
/* /*
* --------- Print off SSL engine version --------- * --------- Print off SSL engine version ---------
*/ */
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
lprintf(info, "libcurl SSL engine: %s\n", data->ssl_version); fprintf(stderr, "libcurl SSL engine: %s\n", data->ssl_version);
} }