Просмотр исходного кода

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

ambrop7 15 лет назад
Родитель
Сommit
882ea81978
2 измененных файлов с 4 добавлено и 4 удалено
  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;
 };
 
-LinkedList2 provides;
-LinkedList2 free_depends;
+static LinkedList2 provides;
+static LinkedList2 free_depends;
 
 static struct provide * find_provide (const char *name)
 {

+ 2 - 2
ncd/modules/multidepend.c

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