Changeset 3212 for trunk/Ohana/src/opihi/pcontrol/HostOps.c
- Timestamp:
- Feb 13, 2005, 9:37:58 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/HostOps.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/HostOps.c
r3204 r3212 37 37 int PutHost (Host *host, int StackID, int where) { 38 38 39 int stat us;39 int stat; 40 40 Stack *stack; 41 41 … … 44 44 45 45 host[0].stack = StackID; 46 status = PutStack (stack, where, host); 47 return (status); 46 stat = PutStack (stack, where, host); 47 /* status (0, NULL); */ 48 return (stat); 48 49 } 49 50 … … 70 71 71 72 for (i = 0; i < stack[0].Nobject; i++) { 72 host = (Host *) stack[0].object ;73 host = (Host *) stack[0].object[i]; 73 74 if (host[0].HostID == HostID) { 74 75 return (i); … … 88 89 89 90 for (i = 0; i < stack[0].Nobject; i++) { 90 host = (Host *) stack[0].object ;91 host = (Host *) stack[0].object[i]; 91 92 if (!strcasecmp (host[0].hostname, name)) { 92 93 return (i); … … 113 114 } 114 115 115 void DownHost (Host *host) {116 117 CLOSE (host[0].stdin);118 CLOSE (host[0].stdout);119 CLOSE (host[0].stderr);120 host[0].job = NULL;121 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);122 }123 124 116 void DelHost (Host *host) { 125 117 FREE (host[0].hostname);
Note:
See TracChangeset
for help on using the changeset viewer.
