IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2007, 2:10:20 PM (19 years ago)
Author:
eugene
Message:

convert str_to_time and related functions to ohana_...; various cleanups for -Wall -Werror

Location:
trunk/Ohana/src/libdvo/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/SavePhotcodesFITS.c

    r12332 r14590  
    77
    88  PhotCodeData *table = NULL;
    9   PhotCode *photcode;
    109  FITS_DB db;
    11 
    12   int i, code, Ncode, Nsec;
    1310
    1411  table = GetPhotcodeTable ();
  • trunk/Ohana/src/libdvo/src/SavePhotcodesText.c

    r12332 r14590  
    22# define SCALE 0.001
    33
    4 static char *PHOT_PRI_NAME = "pri";
    54static char *PHOT_SEC_NAME = "sec";
    65static char *PHOT_ALT_NAME = "alt";
     
    1413
    1514  PhotCodeData *table = NULL;
    16   PhotCode *photcode;
    1715  struct stat filestat;
    1816  char *type;
     
    7674      fprintf (f, " %f,", table[0].code[i].X[j]);
    7775    }
    78     fprintf (f, "%f %f ", table[0].code[i].X[j], table[0].code[i].dX);
     76    fprintf (f, "%f %d ", table[0].code[i].X[j], table[0].code[i].dX);
    7977    PrintPhotcodeNamebyCode (f, "%5d ", table[0].code[i].equiv);
    8078    fprintf (f, "\n");
  • trunk/Ohana/src/libdvo/src/coordops.c

    r14288 r14590  
    735735    case PROJ_PAR:
    736736      return PROJ_MODE_PSEUDOCYL;
    737     default: PROJ_MODE_NONE;
     737    default:
     738      return PROJ_MODE_NONE;
    738739  }
    739740  return PROJ_MODE_NONE;
  • trunk/Ohana/src/libdvo/src/dvo_catalog_create.c

    r8429 r14590  
    9797
    9898  /* write creation date in header */
    99   str_to_time ("now", &now);
    100   line = sec_to_date (now);
     99  ohana_str_to_time ("now", &now);
     100  line = ohana_sec_to_date (now);
    101101  gfits_modify (&catalog[0].header, "DATE", "%s", 1, line);
    102102  free (line);
Note: See TracChangeset for help on using the changeset viewer.