Changeset 31930
- Timestamp:
- Jul 25, 2011, 12:32:27 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/Fits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/Fits.c
r31036 r31930 38 38 this->logger->print(this->logger, MSG_DEBUG, "Fits", "Destructor\n"); 39 39 40 int status = 0; 41 if (fits_close_file(this->file, &status)) { 42 43 this->logger->print(this->logger, MSG_ERROR, "Fits", "Unable to close FITS file '%s'\n", this->path); 44 fits_report_error(stderr, status); 45 } 46 else 47 this->logger->print(this->logger, MSG_DEBUG, "Fits", "Closed FITS file '%s'\n", this->path); 40 // if there is a file to close, then close it 41 if (this->file != NULL) { 42 43 int status = 0; 44 45 if (fits_close_file(this->file, &status)) { 46 47 this->logger->print(this->logger, MSG_ERROR, "Fits", "Unable to close FITS file '%s'\n", this->path); 48 fits_report_error(stderr, status); 49 } 50 else 51 this->logger->print(this->logger, MSG_INFO, "Fits", "Closed FITS file '%s'\n", this->path); 52 } 48 53 49 54 free(this);
Note:
See TracChangeset
for help on using the changeset viewer.
