|
@@ -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))
|