Index: trunk/Ohana/src/opihi/pcontrol/CheckHost.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/CheckHost.c	(revision 3187)
+++ trunk/Ohana/src/opihi/pcontrol/CheckHost.c	(revision 3203)
@@ -3,5 +3,5 @@
 int CheckHost (Host *host) {
   
-  int i, status;
+  int i, N, status;
   IOBuffer buffer;
   Job *job;
@@ -15,5 +15,5 @@
 
       /* if host has a job, job is dead, push to Pending */
-      if (host[0].status == PCONTROL_HOST_BUSY) {
+      if (host[0].stack == PCONTROL_HOST_BUSY) {
 	job = host[0].job;
 	N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY);
@@ -24,9 +24,9 @@
 	job[0].host = NULL; /* unlink host & job */
 	job = GetJob (PCONTROL_JOB_BUSY, N);
-	PutJob (job, PCONTROL_JOB_PENDING, QUEUE_BOTTOM);
+	PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
       }
       host[0].job = NULL;
-      PutHost (host, PCONTROL_HOST_DOWN, QUEUE_BOTTOM);
-      FreeBuffer (&buffer);
+      PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);
+      FreeIOBuffer (&buffer);
       return (FALSE);
       
@@ -34,12 +34,12 @@
       fprintf (stderr, "host %s is not responding\n", host[0].hostname);
       /*** do we mark this in some way (HUNG) ? ***/
-      PutHost (host, host[0].status, QUEUE_BOTTOM);
-      FreeBuffer (&buffer);
+      PutHost (host, host[0].stack, STACK_BOTTOM);
+      FreeIOBuffer (&buffer);
       return (FALSE);
 
     default:
       fprintf (stderr, "host %s is alive\n", host[0].hostname);
-      PutHost (host, host[0].status, QUEUE_BOTTOM);
-      FreeBuffer (&buffer);
+      PutHost (host, host[0].stack, STACK_BOTTOM);
+      FreeIOBuffer (&buffer);
       return (TRUE);
   }
