#include <stdio.h>
#include <string.h>
-#include "list.h"
-#include "lp.h"
+#include <list.h>
+#include <lp.h>
#include <ptime.h>
struct distro_series *distro_series_new(const char *name,
void bpph_list_free(struct bpph **list)
{
- struct bpph **l_cur = list;
+ struct bpph **cur;
- while (*l_cur) {
- bpph_free(*l_cur);
- l_cur++;
- }
+ if (list) {
+ cur = list;
- free(list);
+ while (*cur) {
+ bpph_free(*cur);
+ cur++;
+ }
+
+ free(list);
+ }
}
char *get_archive_url(const char *owner, const char *ppa)
void distro_arch_series_list_free(struct distro_arch_series **list)
{
+ struct distro_arch_series **cur;
+
if (list) {
- while (*list) {
- distro_arch_series_free(*list);
- list++;
+ cur = list;
+ while (*cur) {
+ distro_arch_series_free(*cur);
+ cur++;
}
free(list);
}
return n;
}
-static struct daily_download_total *ddt_clone(struct daily_download_total *ddt)
+struct daily_download_total *ddt_clone(struct daily_download_total *ddt)
{
struct daily_download_total *new;
return new;
}
-static struct daily_download_total **
+struct daily_download_total **
ddts_clone(struct daily_download_total **ddts)
{
int n, i;