tidying stuff up

This commit is contained in:
Fufu Fang 2019-09-04 17:41:34 +01:00
parent aa4aae58b2
commit 56e1095287
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
2 changed files with 5 additions and 6 deletions

View File

@ -89,7 +89,7 @@ extern int MAX_SEGBC;
* If these directories do not exist, they will be created.
* \note Called by parse_arg_list(), verified to be working
*/
void CacheSystem_init(const char *path, int path_supplied);
void CacheSystem_init(const char *path, int url_supplied);
/**
* \brief Create directories under the cache directory structure, if they do

View File

@ -26,7 +26,6 @@ static pthread_mutex_t transfer_lock;
static pthread_mutex_t *crypto_lockarray;
/** \brief mutex for curl share interface itself */
static pthread_mutex_t curl_lock;
/** \brief network configuration */
/* -------------------- Functions -------------------------- */
#pragma GCC diagnostic push
@ -37,9 +36,9 @@ static pthread_mutex_t curl_lock;
*/
static void crypto_lock_callback(int mode, int type, char *file, int line)
{
(void)file;
(void)line;
if(mode & CRYPTO_LOCK) {
(void) file;
(void) line;
if (mode & CRYPTO_LOCK) {
PTHREAD_MUTEX_LOCK(&(crypto_lockarray[type]));
} else {
PTHREAD_MUTEX_UNLOCK(&(crypto_lockarray[type]));
@ -133,7 +132,7 @@ static void curl_process_msgs(CURLMsg *curl_msg, int n_running_curl,
}
if (!curl_msg->data.result) {
/* Transfer successful, query the file size */
/* Transfer successful, set the file size */
if (transfer->type == FILESTAT) {
Link_set_file_stat(transfer->link, curl);
}