Skip to content

Commit 969ff93

Browse files
committed
[Ports] Make all local variables static in Linux port
Signed-off-by: Jean-Christophe DUBOIS <[email protected]>
1 parent 78626d4 commit 969ff93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

uCOS-II/Ports/Posix/GNU/os_cpu_c.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@
6363
* GLOBAL VARIABLES
6464
*********************************************************************************************************
6565
*/
66-
int nNumThreadsCreated=0;
67-
int nNumThreadsStarted=0;
66+
static int nNumThreadsCreated=0;
67+
static int nNumThreadsStarted=0;
6868

6969
/* Condition variable to indicate whether all threads are waiting for their condition variables. i.e.
7070
the system is ready to run. */
71-
pthread_cond_t cvThreadWrapper;
71+
static pthread_cond_t cvThreadWrapper;
7272

7373
/* Condition variables for all threads. Index for thread is stored in its stack. */
74-
pthread_cond_t grcvThread[ OS_LOWEST_PRIO ];
74+
static pthread_cond_t grcvThread[ OS_LOWEST_PRIO ];
7575

7676
/* Array of threads */
77-
pthread_t threadTask[ OS_LOWEST_PRIO ];
77+
static pthread_t threadTask[ OS_LOWEST_PRIO ];
7878

7979
/* Context switching control mutex */
80-
pthread_mutex_t mutThread;
80+
static pthread_mutex_t mutThread;
8181

8282

8383
/*

0 commit comments

Comments
 (0)