Skip to content

Commit

Permalink
Fixed variable collisions for static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang authored Apr 27, 2018
1 parent d86adc8 commit 1d25bdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions softGlueApp/src/drvZynq.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ typedef struct {
* Pointer to drvZynqPvt structure
*/
#define MAX_DRVPVT 10
int numDriverTables=0;
drvZynqPvt *driverTable[MAX_DRVPVT] = {0};
STATIC int numDriverTables=0;
STATIC drvZynqPvt *driverTable[MAX_DRVPVT] = {0};

/*
* asynCommon interface
Expand Down Expand Up @@ -790,8 +790,8 @@ typedef struct {
softGlueIntRoutineData IRData;
} intRoutineEntry;

intRoutineEntry registeredIntRoutines[MAXROUTINES] = {{0}};
int numRegisteredIntRoutines=0;
STATIC intRoutineEntry registeredIntRoutines[MAXROUTINES] = {{0}};
STATIC int numRegisteredIntRoutines=0;

/* Register a routine to be called when a specified
* I/O bit (mask) generates an interrupt.
Expand Down

0 comments on commit 1d25bdb

Please sign in to comment.