Avoid common symbol definitions

This commit is contained in:
joerg 2020-04-22 23:53:27 +00:00
parent f60db1d4f9
commit 2d8c8469e2
6 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: conffile.c,v 1.12 2017/01/10 21:02:38 christos Exp $ */
/* $NetBSD: conffile.c,v 1.13 2020/04/22 23:53:27 joerg Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -47,6 +47,9 @@
#define NextCommand(x) strsep(&x, " ")
#define LINEMAXSIZE 1024
struct coifs_head coifs_head;
struct conei_head conei_head;
char *mapped, *nextline;
size_t mapsize;

View File

@ -1,4 +1,4 @@
/* $NetBSD: conffile.h,v 1.4 2013/10/17 18:10:23 kefren Exp $ */
/* $NetBSD: conffile.h,v 1.5 2020/04/22 23:53:27 joerg Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -49,7 +49,7 @@ struct conf_neighbour {
int authenticate; /* RFC 2385 */
SLIST_ENTRY(conf_neighbour) neilist;
};
SLIST_HEAD(,conf_neighbour) conei_head;
extern SLIST_HEAD(conei_head,conf_neighbour) conei_head;
struct conf_interface {
char if_name[IF_NAMESIZE];
@ -57,7 +57,7 @@ struct conf_interface {
int passive;
SLIST_ENTRY(conf_interface) iflist;
};
SLIST_HEAD(,conf_interface) coifs_head;
extern SLIST_HEAD(coifs_head,conf_interface) coifs_head;
int conf_parsefile(const char *fname);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ldp_peer.c,v 1.16 2013/08/02 07:29:56 kefren Exp $ */
/* $NetBSD: ldp_peer.c,v 1.17 2020/04/22 23:53:27 joerg Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -55,6 +55,7 @@
#include "ldp_peer.h"
extern int ldp_holddown_time;
struct ldp_peer_head ldp_peer_head;
static struct label_mapping *ldp_peer_get_lm(struct ldp_peer *,
const struct sockaddr *, uint);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ldp_peer.h,v 1.8 2013/08/02 07:29:56 kefren Exp $ */
/* $NetBSD: ldp_peer.h,v 1.9 2020/04/22 23:53:27 joerg Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@ struct ldp_peer {
SLIST_ENTRY(ldp_peer) peers;
};
SLIST_HEAD(,ldp_peer) ldp_peer_head;
extern SLIST_HEAD(ldp_peer_head,ldp_peer) ldp_peer_head;
struct peer_map {
struct ldp_peer *peer;

View File

@ -1,4 +1,4 @@
/* $NetBSD: socketops.c,v 1.34 2017/04/12 17:02:51 roy Exp $ */
/* $NetBSD: socketops.c,v 1.35 2020/04/22 23:53:27 joerg Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -61,6 +61,9 @@
#include "ldp_errors.h"
#include "socketops.h"
struct hello_info_head hello_info_head;
static SLIST_HEAD(,hello_socket) hello_socket_head;
int ls; /* TCP listening socket on port 646 */
int route_socket; /* used to see when a route is added/deleted */
int command_socket; /* Listening socket for interface command */

View File

@ -1,4 +1,4 @@
/* $NetBSD: socketops.h,v 1.6 2013/07/11 05:45:23 kefren Exp $ */
/* $NetBSD: socketops.h,v 1.7 2020/04/22 23:53:27 joerg Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -62,12 +62,11 @@ struct hello_info {
int keepalive;
SLIST_ENTRY(hello_info) infos;
};
SLIST_HEAD(,hello_info) hello_info_head;
extern SLIST_HEAD(hello_info_head,hello_info) hello_info_head;
struct hello_socket {
int type, socket;
SLIST_ENTRY(hello_socket) listentry;
};
SLIST_HEAD(,hello_socket) hello_socket_head;
#endif /* !_SOCKETOPS_H_ */