use file cache for distros, refactoring http fcts
[ppastats.git] / src / main.c
index ef215eb..7bd87fc 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "cache.h"
 #include "html.h"
+#include "http.h"
 #include "log.h"
 #include "lp_ws.h"
 #include "config.h"
@@ -204,7 +205,7 @@ int main(int argc, char **argv)
        /* for valgrind.... */
        free(package_status);
        free(output_dir);
-       lp_ws_cleanup();
+       http_cleanup();
        cache_cleanup();
 
        exit(EXIT_SUCCESS);