From 85d20447377d80eabe1bdb64c4b406f49dcd2b45 Mon Sep 17 00:00:00 2001 From: Peter Clifton Date: Tue, 1 Jan 2013 15:44:13 +0000 Subject: [PATCH] find.c: Move file-global "NumberOfPads" into the function which uses it --- src/find.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/find.c b/src/find.c index 9785bbeb3e..c3bf70708f 100644 --- a/src/find.c +++ b/src/find.c @@ -273,7 +273,7 @@ static int thing_type; static bool User = false; /* user action causing this */ static bool drc = false; /* whether to stop if finding something not found */ static Cardinal drcerr_count; /* count of drc errors */ -static Cardinal TotalP, TotalV, NumberOfPads[2]; +static Cardinal TotalP, TotalV; static ListType LineList[MAX_LAYER], /* list of objects to */ PolygonList[MAX_LAYER], ArcList[MAX_LAYER], PadList[2], RatList, PVList; @@ -505,6 +505,7 @@ FreeComponentLookupMemory (void) static void InitComponentLookup (void) { + Cardinal NumberOfPads[2]; Cardinal i; /* initialize pad data; start by counting the total number -- 2.11.4.GIT