Ticket #25773: stealth.diff

File stealth.diff, 3.2 KB (added by skymoo (Adam Mercer), 14 years ago)

stealth update diff

  • cfileio.c

    diff -urN cfitsio/cfileio.c cfitsio.new/cfileio.c
    old new  
    66886688           for (ii = 1; ii <= nkeys; ii++)   /* copy keywords */
    66896689           {
    66906690              ffgrec(tptr,  ii, card, status);
     6691
     6692              /* must reset the PCOUNT keyword to zero in the new output file */
     6693              if (strncmp(card, "PCOUNT  ",8) == 0) { /* the PCOUNT keyword? */
     6694                 if (strncmp(card+25, "    0", 5)) {  /* non-zero value? */
     6695                    strncpy(card, "PCOUNT  =                    0", 30);
     6696                 }
     6697              }   
     6698 
    66916699              ffprec(fptr, card, status);
    66926700           }
    66936701
  • drvrnet.c

    diff -urN cfitsio/drvrnet.c cfitsio.new/drvrnet.c
    old new  
    996996    }
    997997  } else {
    998998    /* Try the .gz one */
    999 /*
    1000999    strcpy(newfilename,filename);
    10011000    strcat(newfilename,".gz");
    10021001    alarm(NETTIMEOUT);
     
    10071006      strcat(newfilename,".Z");
    10081007      alarm(NETTIMEOUT);
    10091008      if (ftp_open_network(newfilename,&ftpfile,&command,&sock)) {
    1010 */     
     1009       
    10111010        /* Now as given */
    10121011        alarm(0);
    10131012        strcpy(newfilename,filename);
     
    10181017          ffpmsg(newfilename);
    10191018          goto error;
    10201019        }
    1021  /*
    10221020      }
    10231021    }
    1024 */
    10251022  }
    10261023
    10271024  closeftpfile++;
     
    15871584    fclose(*command);
    15881585    return (FILE_NOT_OPENED);
    15891586  }
    1590 
    1591 printf("Return: %s",recbuf);
    15921587 
    15931588  /*  Passive mode response looks like
    15941589      227 Entering Passive Mode (129,194,67,8,210,80) */
     
    17111706   int sock;
    17121707   int stat;
    17131708   int val = 1;
    1714 
    1715 printf("connecting to %s on port %d\n", hostname,port);
    1716 
     1709 
    17171710   CreateSocketAddress(&sockaddr,hostname,port);
    17181711   /* Create socket */
    17191712   if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
     
    17761769#ifdef DEBUG
    17771770   printf ("send raw end, sent %d bytes\n",n);
    17781771#endif
    1779 
    1780      printf ("sent:   %s", buf);
    1781 
    1782 
    17831772   return n;
    17841773}
    17851774
     
    18031792      else if (nrecv == 0)
    18041793        break;        /*/ EOF */
    18051794   }
    1806      printf ("NET_RecvRaw received %d bytes: %s",length, buf);
    18071795
    18081796   return n;
    18091797}
     
    21212109#ifdef DEBUG
    21222110    printf("ftp_status, return string was %s\n",recbuf);
    21232111#endif
    2124     printf("Return: %s",recbuf);
    21252112
    21262113    recbuf[len] = '\0'; /* make it short */
    21272114    if (!strcmp(recbuf,statusstr)) {
  • region.c

    diff -urN cfitsio/region.c cfitsio.new/region.c
    old new  
    55#include <ctype.h>
    66#include "fitsio2.h"
    77#include "region.h"
     8static int Pt_in_Poly( double x, double y, int nPts, double *Pts );
    89
    910/*---------------------------------------------------------------------------*/
    1011int fits_read_rgnfile( const char *filename,
  • region.h

    diff -urN cfitsio/region.h cfitsio.new/region.h
    old new  
    7878void fits_setup_shape ( RgnShape *shape);
    7979int fits_read_fits_region ( fitsfile *fptr, WCSdata * wcs, SAORegion **Rgn, int *status);
    8080int fits_read_ascii_region ( const char *filename, WCSdata * wcs, SAORegion **Rgn, int *status);
    81 static int Pt_in_Poly( double x, double y, int nPts, double *Pts );
    8281
    8382