IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37596


Ignore:
Timestamp:
Nov 13, 2014, 4:38:36 PM (12 years ago)
Author:
eugene
Message:

fix build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/HostTable.c

    r37595 r37596  
    4747    free (table->hosts);
    4848  }
    49   if (table->index) free (table->index);
    5049  free (table);
    5150  return;
     
    155154  // identify the unique host names and the number of times they each exist
    156155  // (Host tables are not very large; I can afford to do this in an inefficient way)
     156  int i, j, k;
    157157
    158158  int Nunique = 0;
     
    164164
    165165  for (i = 0; i < table->Nhosts; i++) {
    166     found = FALSE;
     166    int found = FALSE;
    167167    for (j = 0; !found && (j < Nunique); j++) {
    168168      if (!strcmp(table->hosts[i].hostname, unique_hosts[j])) {
     
    194194  for (i = 0; i < Ngroups; i++) {
    195195    groups[i].Nhosts = 0;
    196     ALLOCATE (groups[i].hosts, HostTable *, Nunique);
     196    ALLOCATE (groups[i].hosts, HostInfo *, Nunique);
    197197    for (j = 0; j < Nunique; j++) {
    198       found = FALSE;
     198      int found = FALSE;
    199199      for (k = 0; !found && (k < table->Nhosts); k++) {
    200200        if (foundHost[k]) continue;
Note: See TracChangeset for help on using the changeset viewer.