summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormortimer <mortimer@cvs.openbsd.org>2021-01-28 01:18:45 +0000
committermortimer <mortimer@cvs.openbsd.org>2021-01-28 01:18:45 +0000
commit716d71fdd33319f58e31db80b9950d9b5584aaa6 (patch)
tree05bb8b2750cbeb639af9bba37cc7dcc4b0c60a59
parent68aee92669022d7ba8e380ddd6fe1e8b346c8c42 (diff)
Extern transport_list. Fixed compilation with -fno-common.
ok deraadt@
-rw-r--r--sbin/isakmpd/transport.c4
-rw-r--r--sbin/isakmpd/transport.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/sbin/isakmpd/transport.c b/sbin/isakmpd/transport.c
index 07b2f3ece8f..3413ee8516c 100644
--- a/sbin/isakmpd/transport.c
+++ b/sbin/isakmpd/transport.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: transport.c,v 1.38 2017/12/05 20:31:45 jca Exp $ */
+/* $OpenBSD: transport.c,v 1.39 2021/01/28 01:18:44 mortimer Exp $ */
/* $EOM: transport.c,v 1.43 2000/10/10 12:36:39 provos Exp $ */
/*
@@ -48,6 +48,8 @@
LIST_HEAD(transport_method_list, transport_vtbl) transport_method_list;
+struct transport_list transport_list;
+
/* Call the reinit function of the various transports. */
void
transport_reinit(void)
diff --git a/sbin/isakmpd/transport.h b/sbin/isakmpd/transport.h
index 7105e42ec7c..3e8a2565dfa 100644
--- a/sbin/isakmpd/transport.h
+++ b/sbin/isakmpd/transport.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: transport.h,v 1.22 2018/01/15 09:54:48 mpi Exp $ */
+/* $OpenBSD: transport.h,v 1.23 2021/01/28 01:18:44 mortimer Exp $ */
/* $EOM: transport.h,v 1.16 2000/07/17 18:57:59 provos Exp $ */
/*
@@ -47,7 +47,8 @@
struct transport;
-LIST_HEAD(transport_list, transport) transport_list;
+LIST_HEAD(transport_list, transport);
+extern struct transport_list transport_list;
/* This describes a transport "method" like UDP or similar. */
struct transport_vtbl {