1Mark extern variables with 'extern' keyword
2
3This ensures that compilers with -fno-common does not generate multiple definitions
4
5Upstream-Status: Pending
6Signedd-off-by: Khem Raj <raj.khem@gmail.com>
7
8--- a/lib/wfa_cs.c
9+++ b/lib/wfa_cs.c
10@@ -71,7 +71,7 @@ int wfaExecuteCLI(char *CLI);
11
12 /* Since the two definitions are used all over the CA function */
13 char gCmdStr[WFA_CMD_STR_SZ];
14-dutCmdResponse_t gGenericResp;
15+extern dutCmdResponse_t gGenericResp;
16 int wfaTGSetPrio(int sockfd, int tgClass);
17 void create_apts_msg(int msg, unsigned int txbuf[],int id);
18
19--- a/lib/wfa_thr.c
20+++ b/lib/wfa_thr.c
21@@ -41,7 +41,7 @@
22 /*
23  * external global thread sync variables
24  */
25-tgWMM_t wmm_thr[WFA_THREADS_NUM];
26+extern tgWMM_t wmm_thr[WFA_THREADS_NUM];
27 extern int resetsnd;
28 extern int resetrcv;
29 extern int newCmdOn;
30