瀏覽代碼

testing arrays

tarfeef101 6 年之前
父節點
當前提交
3b20254276
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      kern/synchprobs/traffic_synch.c

+ 1 - 2
kern/synchprobs/traffic_synch.c

@@ -24,7 +24,7 @@ int northa[4] = {0, 0, 1, 2};
 int easta[4] = {2, 0, 0, 1};
 int southa[4] = {1, 2, 0, 0};
 int westa[4] = {0, 1, 2, 0};
-int * compass[4] = {&northa, &easta, &southa, &westa};
+int * compass[4] = {northa, easta, southa, westa};
 
 // car initializer/allocator
 static car * newcar(Direction origin, Direction dest)
@@ -112,7 +112,6 @@ static bool rightturn(car * car)
 // inits all arrays we need, lock.
 void intersection_sync_init()
 {
-  kprintf("test success, %d", test[0]);
   globlock = lock_create("lightlock");
   
   if (!(globlock))