IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 15, 2007, 3:25:20 PM (19 years ago)
Author:
eugene
Message:

changed device numbers to device names; using inet sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/cmd.data/clear.c

    r7917 r13391  
    44 
    55  int N, ClearSection;
    6   int Ngraph, Xgraph;
     6  int kapa;
     7  char *name;
    78
    8   Ngraph = -1;
     9  name = NULL;
    910  if ((N = get_argument (argc, argv, "-n"))) {
    1011    remove_argument (N, &argc, argv);
    11     Ngraph = atof (argv[N]);
     12    name = strcreate (argv[N]);
    1213    remove_argument (N, &argc, argv);
    1314  }
    14   if (!GetGraph (NULL, &Xgraph, &Ngraph)) return (FALSE);
     15  if (!GetGraph (NULL, &kapa, name)) return (FALSE);
     16  FREE (name);
    1517
     18  /* XXX need to distinguish between Plot, AllPlots, Image, AllSections */
    1619  ClearSection = FALSE;
    1720  if ((N = get_argument (argc, argv, "-s"))) {
     
    2528  }
    2629
    27   KapaClear (Xgraph, ClearSection);
     30  KapaClear (kapa, ClearSection);
    2831  return (TRUE);
    2932}
Note: See TracChangeset for help on using the changeset viewer.