Changeset 3212 for trunk/Ohana/src/opihi/pcontrol/JobOps.c
- Timestamp:
- Feb 13, 2005, 9:37:58 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/JobOps.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/JobOps.c
r3204 r3212 37 37 int PutJob (Job *job, int StackID, int where) { 38 38 39 int stat us;39 int stat; 40 40 Stack *stack; 41 41 … … 46 46 job[0].state = StackID; 47 47 job[0].stack = StackID; 48 status = PutStack (stack, where, job); 49 return (status); 48 stat = PutStack (stack, where, job); 49 /* status (0, NULL); */ 50 return (stat); 50 51 } 51 52 … … 72 73 73 74 for (i = 0; i < stack[0].Nobject; i++) { 74 job = (Job *) stack[0].object ;75 job = (Job *) stack[0].object[i]; 75 76 if (job[0].JobID == JobID) { 76 77 return (i); … … 163 164 164 165 void LinkJobAndHost (Job *job, Host *host) { 166 int N; 167 165 168 job[0].host = host; 166 169 host[0].job = job; 170 171 # if (0) 172 /*** need to pop host off of correct stack XXX ***/ 173 N = FindHost (host[0].HostID, host[0].stack); 174 if (N < 0) { 175 fprintf (stderr, "programming error: host is not found in current stack\n"); 176 exit (2); 177 } 178 host = GetHost (host[0].stack, N); 179 # endif 180 181 /*** need to pop job off of correct stack XXX ***/ 182 N = FindJob (job[0].JobID, job[0].stack); 183 if (N < 0) { 184 fprintf (stderr, "programming error: job is not found in current stack\n"); 185 exit (2); 186 } 187 job = GetJob (job[0].stack, N); 188 189 /*** this is fairly crazy : the only reason this works is cause I 190 get the same host ptr here and in CheckIdleHost 191 ***/ 167 192 }
Note:
See TracChangeset
for help on using the changeset viewer.
