Index: trunk/ippTools/src/pztool.c
===================================================================
--- trunk/ippTools/src/pztool.c	(revision 8536)
+++ trunk/ippTools/src/pztool.c	(revision 8849)
@@ -3,4 +3,6 @@
 #endif
 
+#include <stdio.h>
+#include <string.h>
 #include <stdlib.h>
 
@@ -59,14 +61,14 @@
     psArray *summit = summitExpSelectRowObjects(config->dbh,
         config->where, MAX_ROWS);
-    if (!summit) { 
+    if (!summit) {
         psError(PS_ERR_UNKNOWN, false, "no summitExp rows found"); \
-        return false; 
-    } 
+        return false;
+    }
 
     psArray *new = newExpSelectRowObjects(config->dbh,
         config->where, MAX_ROWS);
-    if (!new) { 
+    if (!new) {
         psError(PS_ERR_UNKNOWN, false, "no newExp rows found"); \
-    } 
+    }
 
     if (new) {
@@ -138,5 +140,5 @@
 
         if (!newImfileInsert(
-            config->dbh, 
+            config->dbh,
             pendingImfile->exp_id,
             pendingImfile->class,
@@ -147,5 +149,5 @@
             psError(PS_ERR_UNKNOWN, false, "dbh access failed");
             psFree(pending);
-            goto ROLLBACK; 
+            goto ROLLBACK;
         }
     }
@@ -154,5 +156,5 @@
         psError(PS_ERR_UNKNOWN, false, "dbh access failed");
         psFree(pending);
-        goto ROLLBACK; 
+        goto ROLLBACK;
     }
     psFree(pending);
@@ -161,12 +163,12 @@
     if (!pztoolFlushPendingExp(config)) {
         psError(PS_ERR_UNKNOWN, false, "pztoolFlushPendingExp() failed");
-        goto ROLLBACK; 
-    }
-
-    // point of no return 
+        goto ROLLBACK;
+    }
+
+    // point of no return
     if (!psDBCommit(config->dbh)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         // XXX is this the right thing to do after a commit failure?
-        goto ROLLBACK; 
+        goto ROLLBACK;
     }
 
