IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2004, 1:35:23 PM (22 years ago)
Author:
eugene
Message:

minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/misc/src/gtfringetable.c

    r24 r2448  
    11# include <ohana.h>
    2 static char *version = "gtfringetable $Revision: 1.1 $";
     2static char *version = "gtfringetable $Revision: 1.2 $";
    33
    4 int get_version (int argc, char **argv, char *version);
     4void get_version (int argc, char **argv, char *version);
    55
    6 void main (int argc, char **argv) {
     6int main (int argc, char **argv) {
    77
    88  int i;
     
    3434  fclose (f);
    3535
    36   fits_get_table_column (&header, &table, "X_MIN", &xmin);
    37   fits_get_table_column (&header, &table, "X_MAX", &xmax);
    38   fits_get_table_column (&header, &table, "Y_MIN", &ymin);
    39   fits_get_table_column (&header, &table, "Y_MAX", &ymax);
     36  fits_get_table_column (&header, &table, "X_MIN", (void **) &xmin);
     37  fits_get_table_column (&header, &table, "X_MAX", (void **) &xmax);
     38  fits_get_table_column (&header, &table, "Y_MIN", (void **) &ymin);
     39  fits_get_table_column (&header, &table, "Y_MAX", (void **) &ymax);
    4040
    4141  for (i = 0; i < header.Naxis[1]; i++) {
     
    4343    fprintf (stdout, "%f %f\n", xmax[i] / binning, ymax[i] / binning);
    4444  }
    45 
     45  exit (0);
    4646}
    4747
    4848/**** support functions ******/
    49 int get_version (int argc, char **argv, char *version) {
     49void get_version (int argc, char **argv, char *version) {
    5050
    5151  int N;
Note: See TracChangeset for help on using the changeset viewer.