Pārlūkot izejas kodu

ncd/modules/depend.c, ncd/modules/multidepend.c: fix global variable conflict

ambrop7 15 gadi atpakaļ
vecāks
revīzija
882ea81978
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2 2
      ncd/modules/depend.c
  2. 2 2
      ncd/modules/multidepend.c

+ 2 - 2
ncd/modules/depend.c

@@ -57,8 +57,8 @@ struct depend {
     LinkedList2Node node;
     LinkedList2Node node;
 };
 };
 
 
-LinkedList2 provides;
-LinkedList2 free_depends;
+static LinkedList2 provides;
+static LinkedList2 free_depends;
 
 
 static struct provide * find_provide (const char *name)
 static struct provide * find_provide (const char *name)
 {
 {

+ 2 - 2
ncd/modules/multidepend.c

@@ -66,8 +66,8 @@ struct depend {
     int provide_collapsing;
     int provide_collapsing;
 };
 };
 
 
-LinkedList2 provides;
-LinkedList2 depends;
+static LinkedList2 provides;
+static LinkedList2 depends;
 
 
 static struct provide * find_provide (const char *name)
 static struct provide * find_provide (const char *name)
 {
 {