minor refactoring
This commit is contained in:
parent
cd6bb5bee8
commit
d403fa339b
2
Makefile
2
Makefile
|
@ -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~
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue