Changeset 39319 for trunk/Ohana/src/libdvo
- Timestamp:
- Jan 17, 2016, 3:00:30 PM (11 years ago)
- Location:
- trunk/Ohana/src/libdvo
- Files:
-
- 2 edited
-
include/dvo.h (modified) (1 diff)
-
src/HostTable.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/include/dvo.h
r39301 r39319 1121 1121 1122 1122 void InitHost (HostInfo *host); 1123 void FreeHostTable (HostTable *table); 1124 void FreeHostTableGroup (HostTableGroup *table); 1123 1125 1124 1126 HostTableGroup *HostTableGroupsUniqueMachines (HostTable *table, int *ngroups); -
trunk/Ohana/src/libdvo/src/HostTable.c
r39308 r39319 29 29 free (hosts[i].hostname); 30 30 free (hosts[i].pathname); 31 FreeIOBuffer (&hosts[i].stdout); 32 FreeIOBuffer (&hosts[i].stderr); 31 33 } 32 34 free (hosts); … … 34 36 } 35 37 36 void Free Table (HostTable *table) {38 void FreeHostTable (HostTable *table) { 37 39 38 40 if (!table) return; … … 46 48 47 49 // a HostTableGroup is a pointer set to one or more HostTable entries 48 void Free TableGroup (HostTableGroup *table) {50 void FreeHostTableGroup (HostTableGroup *table) { 49 51 50 52 if (!table) return; … … 264 266 groups[i].Nhosts = 0; 265 267 ALLOCATE (groups[i].hosts, HostInfo *, Nmax); 266 for (j = 0; j < Nmax; j++) {268 for (j = 0; (j < Nmax) && (k < table->Nhosts); j++) { 267 269 groups[i].hosts[groups[i].Nhosts] = &table->hosts[k]; 268 270 groups[i].Nhosts ++;
Note:
See TracChangeset
for help on using the changeset viewer.
