1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/gdnsd/dclists.patch
2022-05-12 02:09:47 +00:00

32 lines
997 B
Diff

--- a/libgdmaps/dclists.c
+++ b/libgdmaps/dclists.c
@@ -60,13 +60,6 @@
// used on true shutdown of the whole gdmap (only debug
// mode for the real plugin).
-struct dclists {
- unsigned count; // count of unique result lists
- unsigned old_count; // count from object we cloned from
- uint8_t** list; // strings of dc numbers
- const dcinfo_t* info; // dclists_t doesn't own "info", just uses it for reference a lot
-};
-
dclists_t* dclists_new(const dcinfo_t* info)
{
const unsigned num_dcs = dcinfo_get_count(info);
--- a/libgdmaps/dclists.h
+++ b/libgdmaps/dclists.h
@@ -28,6 +28,13 @@
#include <inttypes.h>
#include <stdbool.h>
+struct dclists {
+ unsigned count; // count of unique result lists
+ unsigned old_count; // count from object we cloned from
+ uint8_t** list; // strings of dc numbers
+ const dcinfo_t* info; // dclists_t doesn't own "info", just uses it for reference a lot
+};
+
typedef struct dclists dclists_t;
typedef enum {