From: mortimer Date: Thu, 28 Jan 2021 01:18:44 +0000 (+0000) Subject: Extern transport_list. Fixed compilation with -fno-common. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9ddd0770ccfc17714ea3221d02a367d6ba4de8e9;p=openbsd Extern transport_list. Fixed compilation with -fno-common. ok deraadt@ --- 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 {