Index: branches/pap/pswarp/pswarpPixelsLit.c
===================================================================
--- branches/pap/pswarp/src/pswarpPixelFraction.c	(revision 23677)
+++ branches/pap/pswarp/pswarpPixelsLit.c	(revision 23679)
@@ -21,5 +21,5 @@
 #include "pswarp.h"
 
-bool pswarpPixelFraction(const pmReadout *readout, psMetadata *stats, const pmConfig *config)
+bool pswarpPixelsLit(const pmReadout *readout, psMetadata *stats, const pmConfig *config)
 {
     PS_ASSERT_PTR_NON_NULL(readout, false);
@@ -52,5 +52,5 @@
     // output mask bits
     psImageMaskType maskValue = psMetadataLookupImageMask(&status, recipe, "MASK.OUTPUT");
-    psAssert (status, "MASK.OUTPUT was not defined");
+    psAssert(status, "MASK.OUTPUT was not defined");
 
     psImage *image = readout->image;    ///< Image of interest
@@ -62,8 +62,7 @@
     int xMin = INT_MAX, xMax = -INT_MAX, yMin = INT_MAX, yMax = -INT_MAX;
 
-    long numGood = 0;                   ///< Number of bad pixels
     for (int y = 0; y < numRows; y++) {
         for (int x = 0; x < numCols; x++) {
-            if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValue))
+            if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValue)) {
                 if (y > yMax) {
                     yMax = y;
