Loading src/tool_cfgable.h +8 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ #include "tool_metalink.h" struct OperationConfig { CURL *easy; /* once we have one, we keep it here */ CURL *easy; /* A copy of the handle from GlobalConfig */ bool remote_time; char *random_file; char *egd_file; Loading Loading @@ -220,6 +220,13 @@ struct OperationConfig { struct OperationConfig* next; /* Always last in the struct */ }; struct GlobalConfig { CURL *easy; /* Once we have one, we keep it here */ struct OperationConfig *first; struct OperationConfig *last; /* Always last in the struct */ }; void config_init(struct OperationConfig* config); void config_free(struct OperationConfig* config); Loading src/tool_main.c +4 −1 Original line number Diff line number Diff line Loading @@ -162,8 +162,11 @@ static void main_free(void) int main(int argc, char *argv[]) { CURLcode result = CURLE_OK; struct GlobalConfig global; struct OperationConfig *config; memset(&global, 0, sizeof(global)); main_checkfds(); #if defined(HAVE_SIGNAL) && defined(SIGPIPE) Loading @@ -173,7 +176,7 @@ int main(int argc, char *argv[]) /* Initialize memory tracking */ memory_tracking_init(); /* Allocate the initial config */ /* Allocate the initial operate config */ config = malloc(sizeof(struct OperationConfig)); if(config) { Loading Loading
src/tool_cfgable.h +8 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ #include "tool_metalink.h" struct OperationConfig { CURL *easy; /* once we have one, we keep it here */ CURL *easy; /* A copy of the handle from GlobalConfig */ bool remote_time; char *random_file; char *egd_file; Loading Loading @@ -220,6 +220,13 @@ struct OperationConfig { struct OperationConfig* next; /* Always last in the struct */ }; struct GlobalConfig { CURL *easy; /* Once we have one, we keep it here */ struct OperationConfig *first; struct OperationConfig *last; /* Always last in the struct */ }; void config_init(struct OperationConfig* config); void config_free(struct OperationConfig* config); Loading
src/tool_main.c +4 −1 Original line number Diff line number Diff line Loading @@ -162,8 +162,11 @@ static void main_free(void) int main(int argc, char *argv[]) { CURLcode result = CURLE_OK; struct GlobalConfig global; struct OperationConfig *config; memset(&global, 0, sizeof(global)); main_checkfds(); #if defined(HAVE_SIGNAL) && defined(SIGPIPE) Loading @@ -173,7 +176,7 @@ int main(int argc, char *argv[]) /* Initialize memory tracking */ memory_tracking_init(); /* Allocate the initial config */ /* Allocate the initial operate config */ config = malloc(sizeof(struct OperationConfig)); if(config) { Loading