Index: /trunk/Ohana/src/addstar/src/NewImage.c
===================================================================
--- /trunk/Ohana/src/addstar/src/NewImage.c	(revision 5287)
+++ /trunk/Ohana/src/addstar/src/NewImage.c	(revision 5288)
@@ -3,6 +3,7 @@
 int NewImage (int BindSocket) {
 
-  int i, Nstars, Noptions;
+  int i, Nstars, Noptions, Nimage;
   Stars *stars;
+  Image *image;
   AddstarClientOptions *options;
 
@@ -13,10 +14,8 @@
   }
 
-# if (0)
-  if (!Recv_Image (BindSocket, &image)) {
+  if (!Recv_Image (BindSocket, &image, &Nimage)) {
     close (BindSocket);
     return (FALSE);
   }
-# endif
 
   if (!Recv_Stars (BindSocket, &stars, &Nstars)) {
@@ -24,4 +23,5 @@
     return (FALSE);
   }
+  /* XXX EAM : error check : 1 option, 1 image */
 
   /* add to db */
@@ -33,6 +33,10 @@
 	   options[0].skip_missed);
 
-  for (i = 0; i < Nstars; i++) {
-    fprintf (stderr, "R, D: %f, %f\n", stars[i].R, stars[i].D);
+//  for (i = 0; i < Nstars; i++) {
+//    fprintf (stderr, "R, D: %f, %f\n", stars[i].R, stars[i].D);
+//  }
+
+  for (i = 0; i < Nimage; i++) {
+    fprintf (stderr, "name: %s\n", image[i].name);
   }
 
Index: /trunk/Ohana/src/addstar/src/addstarc.c
===================================================================
--- /trunk/Ohana/src/addstar/src/addstarc.c	(revision 5287)
+++ /trunk/Ohana/src/addstar/src/addstarc.c	(revision 5288)
@@ -3,8 +3,9 @@
 int main (int argc, char **argv) {
 
-  int Nstars;
+  int Nstars, Nimage;
   int BindSocket;
   AddstarClientOptions options;
   Stars *stars;
+  Image image;
 
   /* load config and options */
@@ -12,8 +13,6 @@
   options = args_client (argc, argv);
 
-# if (0)
   /* load data */
   stars = gstars (argv[1], &Nstars, &image);
-# endif
 
   /* set up server connection */
@@ -21,21 +20,9 @@
   SendCommand (BindSocket, strlen(PASSWORD), PASSWORD);
 
-  ALLOCATE (stars, Stars, 2);
-  Nstars = 2;
-
-  stars[0].R = 10.0;
-  stars[0].D = 40.0;
-
-  stars[1].R = 25.0;
-  stars[1].D = 60.0;
-
   /* send new data to server */
   SendCommand (BindSocket, 5, "IMAGE");
   Send_AddstarClientOptions (BindSocket, &options, 1, TRUE);
+  Send_Image (BindSocket, &image, 1, FALSE);
   Send_Stars (BindSocket, stars, Nstars, FALSE);
-
-# if (0)
-  SendImage (BindSocket, &image);
-# endif
 
   exit (0);
