fixed style
[ppastats.git] / src / main.c
index 58cb028..b590c67 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 
 #include "cache.h"
+#include <fcache.h>
 #include "html.h"
 #include "http.h"
 #include "lp_ws.h"
@@ -198,7 +199,8 @@ int main(int argc, char **argv)
        }
 
        if (!cmdok || optind + 2 != argc) {
-               fprintf(stderr, _("Try `%s --help' for more information.\n"),
+               fprintf(stderr,
+                       _("Try `%s --help' for more information.\n"),
                        program_name);
                exit(EXIT_FAILURE);
        }
@@ -209,8 +211,12 @@ int main(int argc, char **argv)
        ppa = argv[optind+1];
 
        if (output_html)
-               ppa_to_html(owner, ppa, package_status, output_dir,
-                           install_static_files, ws_size);
+               ppa_to_html(owner,
+                           ppa,
+                           package_status,
+                           output_dir,
+                           install_static_files,
+                           ws_size);
        else
                display_published_binaries(owner, ppa, package_status, ws_size);
 
@@ -219,6 +225,8 @@ int main(int argc, char **argv)
        free(output_dir);
        http_cleanup();
        cache_cleanup();
+       fcache_cleanup();
+       html_cleanup();
 
        exit(EXIT_SUCCESS);
 }