gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master ccd1169: Corrected call to fits_write_chksum i


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master ccd1169: Corrected call to fits_write_chksum in Fits program
Date: Mon, 31 Dec 2018 11:46:01 -0500 (EST)

branch: master
commit ccd1169477c119b97581aa3f950832b085be706c
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Corrected call to fits_write_chksum in Fits program
    
    When I initially added this CFITSIO function, I had a typo in the full
    function name, so it couldn't compile and I was forced to use the short
    name (`ffpcks'). I just found that the problem wasn't in CFITSIO (not
    properly defining the long funciton name), but in my own typing of it: so
    the long option name is now used correctly.
---
 bin/fits/keywords.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/fits/keywords.c b/bin/fits/keywords.c
index 61c3c68..fbda9c4 100644
--- a/bin/fits/keywords.c
+++ b/bin/fits/keywords.c
@@ -140,8 +140,8 @@ keywords_write_set_value(struct fitsparams *p, fitsfile 
**fptr,
         return 1;
       else
         {
-          /* Calculate and write the checksum and datasum. */
-          if( ffpcks(*fptr, &status) )
+          /* Calculate and write the `CHECKSUM' and `DATASUM' keywords. */
+          if( fits_write_chksum(*fptr, &status) )
             gal_fits_io_error(status, NULL);
 
           /* If the user just wanted datasum, remove the checksum



reply via email to

[Prev in Thread] Current Thread [Next in Thread]