Changeset 37596
- Timestamp:
- Nov 13, 2014, 4:38:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/HostTable.c
r37595 r37596 47 47 free (table->hosts); 48 48 } 49 if (table->index) free (table->index);50 49 free (table); 51 50 return; … … 155 154 // identify the unique host names and the number of times they each exist 156 155 // (Host tables are not very large; I can afford to do this in an inefficient way) 156 int i, j, k; 157 157 158 158 int Nunique = 0; … … 164 164 165 165 for (i = 0; i < table->Nhosts; i++) { 166 found = FALSE;166 int found = FALSE; 167 167 for (j = 0; !found && (j < Nunique); j++) { 168 168 if (!strcmp(table->hosts[i].hostname, unique_hosts[j])) { … … 194 194 for (i = 0; i < Ngroups; i++) { 195 195 groups[i].Nhosts = 0; 196 ALLOCATE (groups[i].hosts, Host Table*, Nunique);196 ALLOCATE (groups[i].hosts, HostInfo *, Nunique); 197 197 for (j = 0; j < Nunique; j++) { 198 found = FALSE;198 int found = FALSE; 199 199 for (k = 0; !found && (k < table->Nhosts); k++) { 200 200 if (foundHost[k]) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
