From 4c6aff87c8319bcd13c54f77fe8cfd04806fe77a Mon Sep 17 00:00:00 2001 From: Gary Jennejohn Date: Sun, 13 Jan 2002 19:16:52 +0000 Subject: Make call_desc[] extern since it's also defined in layer4/i4b_l4mgmt.c which was causing the link of the kernel to fail. Since layer4/i4b_l4mgmt.c is always required by i4b and layer3/i4b_q931.c is only needed when a passive card is present it makes sense to have the declaration in the former file only. No MFC required since the problem only became apparent after a change to the compile options in -current which AFAIK wasn't made in -stable. --- sys/i4b/layer3/i4b_q931.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/i4b/layer3/i4b_q931.c b/sys/i4b/layer3/i4b_q931.c index c72f283bda9e..1f4d29ab7b1d 100644 --- a/sys/i4b/layer3/i4b_q931.c +++ b/sys/i4b/layer3/i4b_q931.c @@ -77,7 +77,8 @@ unsigned int i4b_l3_debug = L3_DEBUG_DEFAULT; -call_desc_t call_desc[N_CALL_DESC]; /* call descriptor array */ +/* this is declared in layer4/i4b_l4mgmt.c, which is always required */ +extern call_desc_t call_desc[N_CALL_DESC]; /* call descriptor array */ ctrl_desc_t ctrl_desc[MAX_CONTROLLERS]; /* controller description array */ int utoc_tab[MAX_CONTROLLERS]; /* unit to controller conversion */ -- cgit v1.3