Index: trunk/ippTools/src/chiptool.c
===================================================================
--- trunk/ippTools/src/chiptool.c	(revision 8667)
+++ trunk/ippTools/src/chiptool.c	(revision 8849)
@@ -3,4 +3,6 @@
 #endif
 
+#include <stdio.h>
+#include <string.h>
 #include <stdlib.h>
 
@@ -81,5 +83,5 @@
     }
     psArray *pendingFrames = p2PendingFrameSearch(config);
-    // XXX compare raw frames to pending frames and remove duplicate 
+    // XXX compare raw frames to pending frames and remove duplicate
     // frames from the raw set.  This may not be quiet right as it's
     // possible (likely?) that a rawScienceExp is inserted into the
@@ -97,5 +99,5 @@
                     i--;
                     break;
-                } 
+                }
             }
         }
@@ -116,5 +118,5 @@
                         i--;
                         break;
-                    } 
+                    }
                 }
             }
@@ -181,9 +183,9 @@
     // the p2ProcessedeImfile tables
     // remove corresponding entries from the
-    // p2PendingImfile table 
+    // p2PendingImfile table
     // check to see if any p2PendingExps have no
-    // associated p2PendingImfiles 
+    // associated p2PendingImfiles
     // if so move the p2PendingExp(s) to p2ProcessedExp
-    
+
     psString query = psStringCopy(
         "SELECT DISTINCT"
@@ -198,5 +200,5 @@
     {
         psMetadata *where = psMetadataAlloc();
-        bool status = false;        
+        bool status = false;
         psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id");        if (!status) {
             psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_id");
@@ -319,5 +321,5 @@
     }
 
-    // point of no return for p2PendingImfile -> p2ProcessedImfile 
+    // point of no return for p2PendingImfile -> p2ProcessedImfile
     // point of no return for p2PendingExp -> p2ProcessedExp
     if (!psDBCommit(config->dbh)) {
@@ -333,9 +335,9 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
 
-    // look for completed p2PendingExp 
+    // look for completed p2PendingExp
     // migrate them to p2ProccessedExp & p3PendingExp
 
     // select * from p2PendingExp
-    // where exp_id is not in p2ProcessedExp 
+    // where exp_id is not in p2ProcessedExp
     // where exp_id is not in p2PendingImfile
     // where the number of entries in p2ProccessedImfile matches the .imfiles
