Index: trunk/Ohana/src/addstar/src/FilterStars.c
===================================================================
--- trunk/Ohana/src/addstar/src/FilterStars.c	(revision 19259)
+++ trunk/Ohana/src/addstar/src/FilterStars.c	(revision 19823)
@@ -28,6 +28,5 @@
 
     XY_to_RD (&stars[N].R, &stars[N].D, stars[N].X, stars[N].Y, &image[0].coords);
-    while (stars[N].R <    0.0) stars[N].R += 360.0;
-    while (stars[N].R >= 360.0) stars[N].R -= 360.0;
+    stars[N].R = ohana_normalize_angle (stars[N].R);
     stars[N].found = -1;
     stars[N].code = image[0].photcode;
Index: trunk/Ohana/src/addstar/src/ReadImageHeader.c
===================================================================
--- trunk/Ohana/src/addstar/src/ReadImageHeader.c	(revision 19259)
+++ trunk/Ohana/src/addstar/src/ReadImageHeader.c	(revision 19823)
@@ -76,6 +76,5 @@
   } else {
     /* force image to lie in 0-360 range */
-    while (image[0].coords.crval1 < 0) image[0].coords.crval1 += 360.0;
-    while (image[0].coords.crval1 > 360.0) image[0].coords.crval1 -= 360.0;
+    image[0].coords.crval1 = ohana_normalize_angle (image[0].coords.crval1);
   }
 
Index: trunk/Ohana/src/addstar/src/grefstars.c
===================================================================
--- trunk/Ohana/src/addstar/src/grefstars.c	(revision 19259)
+++ trunk/Ohana/src/addstar/src/grefstars.c	(revision 19823)
@@ -25,6 +25,5 @@
     dparse (&stars[N].M,  3, line);
     dparse (&stars[N].dM, 4, line);
-    while (stars[N].R < 0.0) stars[N].R += 360.0;
-    while (stars[N].R >= 360.0) stars[N].R -= 360.0;
+    stars[N].R = ohana_normalize_angle (stars[N].R);
     stars[N].t = 0;
     stars[N].code = photcode;
