summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>2002-01-13 19:16:52 +0000
committergj <gj@FreeBSD.org>2002-01-13 19:16:52 +0000
commitd3a306bcb9a9667b3248fb405d5a6dd0b88b8fe8 (patch)
tree46874d9ea5146822de9ad9d11a563f0aa8707763 /sys/i4b
parent6f66434b4f3ccf2ad05c9b816fc9724616d0a323 (diff)
downloadFreeBSD-src-d3a306bcb9a9667b3248fb405d5a6dd0b88b8fe8.zip
FreeBSD-src-d3a306bcb9a9667b3248fb405d5a6dd0b88b8fe8.tar.gz
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.
Diffstat (limited to 'sys/i4b')
-rw-r--r--sys/i4b/layer3/i4b_q931.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i4b/layer3/i4b_q931.c b/sys/i4b/layer3/i4b_q931.c
index c72f283..1f4d29a 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 */
OpenPOWER on IntegriCloud