Index: branches/jhoblitt/ippdb/tests/pop.c
===================================================================
--- branches/jhoblitt/ippdb/tests/pop.c	(revision 7500)
+++ branches/jhoblitt/ippdb/tests/pop.c	(revision 8006)
@@ -483,13 +483,13 @@
     {
         psDB            *dbh;
+        psS32           iteration;
         char            det_type[256];
-        psS32           iteration;
-
-        dbh = psDBInit("localhost", "test", NULL, "test");
-        if (!dbh) {
-            exit(EXIT_FAILURE);
-        }
-
-        if (!detRunPop(dbh, (char **)&det_type, &iteration)) { 
+
+        dbh = psDBInit("localhost", "test", NULL, "test");
+        if (!dbh) {
+            exit(EXIT_FAILURE);
+        }
+
+        if (!detRunPop(dbh, &iteration, (char **)&det_type)) { 
             exit(EXIT_FAILURE);
         }
