minor refactoring

This commit is contained in:
Fufu Fang 2021-09-03 15:41:22 +01:00
parent cd6bb5bee8
commit d403fa339b
4 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ doc:
doxygen Doxyfile
format:
astyle --style=kr --align-pointer=name src/*.c src/*.h
astyle --style=kr --align-pointer=name --max-code-length=80 src/*.c src/*.h
clean:
-rm -f src/*.h~

View File

@ -825,7 +825,8 @@ Cache *Cache_open(const char *fn)
*/
if (cf->content_length > Data_size(fn)) {
lprintf(error, "metadata inconsistency %s, \
cf->content_length: %ld, Data_size(fn): %ld.\n", fn, cf->content_length, Data_size(fn));
cf->content_length: %ld, Data_size(fn): %ld.\n", fn, cf->content_length,
Data_size(fn));
Cache_free(cf);
lprintf(cache_lock_debug,

View File

@ -879,8 +879,7 @@ TransferStruct Link_download_full(Link *link)
return ts;
}
static CURL *Link_download_curl_setup(Link *link, size_t req_size,
off_t offset,
static CURL *Link_download_curl_setup(Link *link, size_t req_size, off_t offset,
TransferStruct *header,
TransferStruct *ts)
{

View File

@ -40,7 +40,7 @@ typedef enum {
struct TransferStruct {
/** \brief The array to store the data */
char *data;
/** \brief The size of the array */
/** \brief The current size of the array */
size_t size;
/** \brief The minium requested size */
size_t min_req_size;