diff options
Diffstat (limited to 'kstars/kstars/indi/fitsrw.c')
-rw-r--r-- | kstars/kstars/indi/fitsrw.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kstars/kstars/indi/fitsrw.c b/kstars/kstars/indi/fitsrw.c index b21622bf..388a7fa9 100644 --- a/kstars/kstars/indi/fitsrw.c +++ b/kstars/kstars/indi/fitsrw.c @@ -335,7 +335,7 @@ static void fits_delete_hdulist (FITS_HDU_LIST *hl) int fits_nan_32 (unsigned char *v) -{register unsigned long k; +{unsigned long k; k = (v[0] << 24) | (v[1] << 16) | (v[2] << 8) | v[3]; k &= 0x7fffffff; /* Dont care about the sign bit */ @@ -366,7 +366,7 @@ int fits_nan_32 (unsigned char *v) int fits_nan_64 (unsigned char *v) -{register unsigned long k; +{unsigned long k; k = (v[0] << 24) | (v[1] << 16) | (v[2] << 8) | v[3]; k &= 0x7fffffff; /* Dont care about the sign bit */ @@ -1159,7 +1159,7 @@ err_return: static int fits_eval_pixrange (FILE *fp, FITS_HDU_LIST *hdu) -{register unsigned int maxelem; +{unsigned int maxelem; #define FITSNPIX 4096 unsigned char pixdat[FITSNPIX]; unsigned int nelem, bpp; @@ -1174,8 +1174,8 @@ static int fits_eval_pixrange (FILE *fp, FITS_HDU_LIST *hdu) switch (hdu->bitpix) { case 8: { - register FITS_BITPIX8 pixval; - register unsigned char *ptr; + FITS_BITPIX8 pixval; + unsigned char *ptr; FITS_BITPIX8 minval = 255, maxval = 0; FITS_BITPIX8 blankval; @@ -1217,8 +1217,8 @@ static int fits_eval_pixrange (FILE *fp, FITS_HDU_LIST *hdu) break; } case 16: { - register FITS_BITPIX16 pixval; - register unsigned char *ptr; + FITS_BITPIX16 pixval; + unsigned char *ptr; FITS_BITPIX16 minval = 0x7fff, maxval = ~0x7fff; while (nelem > 0) @@ -1262,8 +1262,8 @@ static int fits_eval_pixrange (FILE *fp, FITS_HDU_LIST *hdu) case 32: { - register FITS_BITPIX32 pixval; - register unsigned char *ptr; + FITS_BITPIX32 pixval; + unsigned char *ptr; FITS_BITPIX32 minval = 0x7fffffff, maxval = ~0x7fffffff; while (nelem > 0) @@ -1306,8 +1306,8 @@ static int fits_eval_pixrange (FILE *fp, FITS_HDU_LIST *hdu) break; } case -32: { - register FITS_BITPIXM32 pixval; - register unsigned char *ptr; + FITS_BITPIXM32 pixval; + unsigned char *ptr; FITS_BITPIXM32 minval, maxval; int first = 1; @@ -1348,8 +1348,8 @@ static int fits_eval_pixrange (FILE *fp, FITS_HDU_LIST *hdu) break; } case -64: { - register FITS_BITPIXM64 pixval; - register unsigned char *ptr; + FITS_BITPIXM64 pixval; + unsigned char *ptr; FITS_BITPIXM64 minval, maxval; int first = 1; |