improved output
[ppastats.git] / src / lp.c
index f9eca43..adb1e2b 100644 (file)
--- a/src/lp.c
+++ b/src/lp.c
@@ -19,6 +19,7 @@
 
 
 #include <stdlib.h>
+#include <stdio.h>
 #include <string.h>
 
 #include "lp.h"
@@ -53,7 +54,8 @@ void distro_series_free(struct distro_series *d)
 }
 
 void
-binary_package_publishing_history_free(struct binary_package_publishing_history *b)
+binary_package_publishing_history_free \
+(struct binary_package_publishing_history *b)
 {
        if (b) {
                free(b->binary_package_name);
@@ -83,7 +85,8 @@ binary_package_publishing_history_new(const char *binary_package_name,
 }
 
 void
-binary_package_publishing_history_list_free(struct binary_package_publishing_history **list)
+binary_package_publishing_history_list_free\
+(struct binary_package_publishing_history **list)
 {
        struct binary_package_publishing_history **l_cur = list;
 
@@ -167,16 +170,3 @@ void daily_download_total_list_free(struct daily_download_total **list)
        }
 }
 
-int list_length(void **list)
-{
-       int n;
-
-       n = 0;
-       while (*list) {
-               list++;
-               n++;
-       }
-
-       return n;
-}
-