In putHeader, check status after calling fits_update_key or fits_delete_key. For fits_update_key, if status is non-zero return -1.  For fits_delete_key, however, if status is KEY_NO_EXIST, clear the error messages and set status to 0.
In putHeader, check status after calling fits_update_key or fits_delete_key.
For fits_update_key, if status is non-zero return -1.  For fits_delete_key,
however, if status is KEY_NO_EXIST, clear the error messages and set status
to 0.


git-svn-id: cc674101e2b794ddc2100b657215d55256e3fd48@12807 fe389314-cf27-0410-b35b-8c050e845b92

jhunkeler/hstcal,jhunkeler/hstcal,jhunkeler/hstcal