X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp.c;h=99cf9b2d6ceb1ecd488f430c60296d1a8f40078d;hb=967d20c38c65689c96a0276e6f916b4f8e2617de;hp=c0c2b905c068c54fdd840a2c54edeffa094cdbe6;hpb=490b3190f22c0b678f3d1cd07e2d6b1f40bd280e;p=ppastats.git diff --git a/src/lp.c b/src/lp.c index c0c2b90..99cf9b2 100644 --- a/src/lp.c +++ b/src/lp.c @@ -52,9 +52,7 @@ void distro_series_free(struct distro_series *d) } } -void -binary_package_publishing_history_free \ -(struct binary_package_publishing_history *b) +void binary_package_publishing_history_free(struct bpph *b) { if (b) { free(b->binary_package_name); @@ -65,31 +63,31 @@ binary_package_publishing_history_free \ } } -struct binary_package_publishing_history * +struct bpph * binary_package_publishing_history_new(const char *binary_package_name, const char *binary_package_version, const char *distro_arch_series_link, const char *self_link, int architecture_specific) { - struct binary_package_publishing_history *b; + struct bpph *h; - b = malloc(sizeof(struct binary_package_publishing_history)); + h = malloc(sizeof(struct bpph)); - b->binary_package_name = strdup(binary_package_name); - b->binary_package_version = strdup(binary_package_version); - b->distro_arch_series_link = strdup(distro_arch_series_link); - b->self_link = strdup(self_link); - b->architecture_specific = architecture_specific; + h->binary_package_name = strdup(binary_package_name); + h->binary_package_version = strdup(binary_package_version); + h->distro_arch_series_link = strdup(distro_arch_series_link); + h->self_link = strdup(self_link); + h->architecture_specific = architecture_specific; - return b; + return h; } void binary_package_publishing_history_list_free\ -(struct binary_package_publishing_history **list) +(struct bpph **list) { - struct binary_package_publishing_history **l_cur = list; + struct bpph **l_cur = list; while (*l_cur) { binary_package_publishing_history_free(*l_cur);