IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2418


Ignore:
Timestamp:
Nov 23, 2004, 6:52:51 PM (22 years ago)
Author:
eugene
Message:

minor compilation errors

Location:
trunk/Ohana/src/libfits
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/include/fitsio.h

    r2415 r2418  
    8181int   fits_fread_ftable           PROTO((FILE *, FTable *, char *));
    8282int   fits_fread_vtable           PROTO((FILE *f, VTable *table, char *extname, int Nrow, int *row));
     83int   fits_fread_ftable_data      PROTO((FILE *f, FTable *table));
    8384int   fits_fwrite_header          PROTO((FILE *, Header *));
    8485int   fits_fwrite_Theader         PROTO((FILE *, Header *));
  • trunk/Ohana/src/libfits/table/F_create_T.c

    r2415 r2418  
    2828int fits_create_vtable (Header *header, VTable *table, int Nrow) {
    2929
    30   int Nbytes;
     30  int i, Nx, Ny;
    3131  char type[80];
    3232
  • trunk/Ohana/src/libfits/table/F_read_T.c

    r2415 r2418  
    1818int fits_fread_ftable (FILE *f, FTable *table, char *extname) {
    1919
    20   int j, found, Nbytes, Nread;
     20  int j, found, Nbytes;
    2121  Header *header;
    2222  char tname[80];
     
    5151
    5252  int Nbytes, Nread;
    53   char tname[80];
    5453
    5554  /* find buffer size */
     
    6968int fits_fread_vtable_range (FILE *f, VTable *table, int start, int Nrows) {
    7069
    71   int Nbytes, Nread, Nskip, Nx, Ny;
    72   char tname[80], *buffer;
     70  int i, Nbytes, Nread, Nskip, Nx, Ny;
     71  char *buffer;
    7372
    7473  /* find buffer size */
     
    8584  ALLOCATE (buffer, char, MAX (Nbytes, 1));
    8685
    87   Fseek (f, Nskip, SEEK_CUR);
     86  fseek (f, Nskip, SEEK_CUR);
    8887  Nread = fread (buffer, sizeof (char), Nbytes, f);
    8988  if (Nread != Nbytes) {
     
    215214int fits_fread_header_extname (FILE *f, Header *header, char *extname) {
    216215
     216  int Nbytes;
    217217  char current[80];
    218218
     
    225225  fseek (f, Nbytes, SEEK_CUR);
    226226
    227   while (fits_fread_header (f, &header)) {
    228     fits_scan (&header, "EXTNAME", "%s", 1, current);
     227  while (fits_fread_header (f, header)) {
     228    fits_scan (header, "EXTNAME", "%s", 1, current);
    229229    if (!strcmp (current, extname)) return (TRUE);
    230     Nbytes = fits_matrix_size (&header);
     230    Nbytes = fits_matrix_size (header);
    231231    fseek (f, Nbytes, SEEK_CUR);
    232232  }
Note: See TracChangeset for help on using the changeset viewer.