summaryrefslogtreecommitdiff
path: root/staging/llist.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-08-19 13:13:34 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2020-08-19 13:16:51 +0200
commit6f20cd366ea73b8b9cf49568e9b95cd79922daed (patch)
treeba08741db5a9591fd2144b5eed65c33956ded6df /staging/llist.h
parent3178ceb8c7e0a94ed29bbd1e277f03bb0d5a3d44 (diff)
mausezahn: move variable definitions from llist.h to llist.c
Move variable definitions to avoid "multiple definition of symbol" linker errors with gcc-10. Updates #216 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging/llist.h')
-rw-r--r--staging/llist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/staging/llist.h b/staging/llist.h
index 49a87c7..d9e59b8 100644
--- a/staging/llist.h
+++ b/staging/llist.h
@@ -49,8 +49,8 @@ struct mz_ll {
void *data; // points to your data
};
-struct mz_ll *packet_sequences;
-struct mz_ll *cli_seq; // currently edited packet sequence used by CLI
+extern struct mz_ll *packet_sequences;
+extern struct mz_ll *cli_seq; // currently edited packet sequence used by CLI
// prototypes
struct mz_ll * mz_ll_create_new_element(struct mz_ll *list);