Revision 51317c83

View differences:

som/TopologyManager/nccache.c
28 28
{
29 29
  int i;
30 30

  
31
  for (i = 0; c->timestamp != 0; i++);
31
  for (i = 0; c[i].timestamp != 0; i++);
32 32
  c[i].id = nodeid_dup(neighbour);
33 33
  c[i++].timestamp = 1;
34 34
  c[i].timestamp = 0;
......
41 41
  int i;
42 42
  int found = 0;
43 43

  
44
  for (i = 0; c->timestamp != 0; i++) {
44
  for (i = 0; c[i].timestamp != 0; i++) {
45 45
    if (nodeid_equal(c[i].id, neighbour)) {
46 46
      found = 1;
47 47
    }

Also available in: Unified diff