X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=blobdiff_plain;f=src%2Flp.c;fp=src%2Flp.c;h=adb1e2b162ce34c60e63c6260f403851cf5cfbc3;hp=f9eca43a354cceb0e690f78677e31c7eb6e1e925;hb=05efb0b6dfba33b3dc441b4bbb795d056d404399;hpb=ed75fc7814a293378aedf473a29c2f161af673b4 diff --git a/src/lp.c b/src/lp.c index f9eca43..adb1e2b 100644 --- a/src/lp.c +++ b/src/lp.c @@ -19,6 +19,7 @@ #include +#include #include #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; -} -