IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2004, 7:48:29 AM (22 years ago)
Author:
eugene
Message:

moved typename/modename to libohana, minor fixes to solve -Wall -Werror problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/detrend/modify.c

    r63 r2803  
    88  DetReg *image;
    99 
     10  value = M_UNDEF;
    1011  image = get_images (&Nimage);
     12
    1113  ALLOCATE (list, int, Nimage);
    1214  if (!strcasecmp (output.ModifyEntry, "mode")) {
    13     for (i = 0; i < NMODE; i++) {
    14       if (!strncasecmp (output.ModifyValue, modename[i], strlen(modename[i]))) {
    15         value = i;
    16         goto valid_mode;
    17       }
     15    value = get_image_mode (output.ModifyValue);
     16    if (value == M_UNDEF) {
     17      fprintf (stderr, "ERROR: invalid image mode %s\n", output.ModifyValue);
     18      exit (1);
    1819    }
    19     fprintf (stderr, "ERROR: invalid image mode %s\n", output.ModifyValue);
    20     exit (1);
    2120  }
    2221  if (!strcasecmp (output.ModifyEntry, "order")) {
    2322    value = atoi (output.ModifyValue);
    2423  }
    25  valid_mode:
    2624
    2725  /* list matched images */
Note: See TracChangeset for help on using the changeset viewer.