Skip to content

Commit

Permalink
Fix issues reported by user ryandesign.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebertin committed Dec 18, 2024
1 parent f273ca7 commit fed30a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define([AC_CACHE_LOAD],)
define([AC_CACHE_SAVE],)

# This is your standard AstrOmatic source code...
AC_INIT([SExtractor],[2.28.0],[[email protected]],
AC_INIT([SExtractor],[2.28.1],[[email protected]],
[sextractor],[http://astromatic.net/software/sextractor])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR(autoconf)
Expand Down
10 changes: 4 additions & 6 deletions src/fits/fitscat.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* This file part of: AstrOmatic FITS/LDAC library
*
* Copyright: (C) 1995-2023 CFHT/IAP/CNRS/SorbonneU
* Copyright: (C) 1995-2024 CEA/AIM/UParisSaclay
*
* License: GNU General Public License
*
Expand All @@ -23,8 +23,6 @@
* along with AstrOmatic software.
* If not, see <http://www.gnu.org/licenses/>.
*
* Last modified: 25/02/2023
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

#ifdef HAVE_CONFIG_H
Expand Down Expand Up @@ -176,8 +174,8 @@ PURPOSE Close a file previously opened by cfitsio
INPUT fitsfile structure.
OUTPUT RETURN_OK if everything went as expected (exit in error otherwise).
NOTES the fitsfile pointer is set to NULL;
AUTHOR E. Bertin (CFHT/IAP/CNRS/SorbonneU)
VERSION 25/02/2023
AUTHOR E. Bertin (CEA/AIM/UParisSaclay)
VERSION 11/10/2024
***/
int close_cfitsio(catstruct *cat) {

Expand All @@ -190,7 +188,7 @@ int close_cfitsio(catstruct *cat) {
cat->filename);
} else {
// Successfully closed FITS file with cfitsio
cat->infptr == NULL;
cat->infptr = NULL;
// Free random seed in CFITSIO.
QFREE(fits_rand_value);
}
Expand Down
12 changes: 5 additions & 7 deletions src/fits/fitswrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* This file part of: AstrOmatic FITS/LDAC library
*
* Copyright: (C) 1995-2020 IAP/CNRS/SorbonneU
* Copyright: (C) 1995-2024 CEA/AIM/UParisSaclay
*
* License: GNU General Public License
*
Expand All @@ -23,8 +23,6 @@
* along with AstrOmatic software.
* If not, see <http://www.gnu.org/licenses/>.
*
* Last modified: 26/08/2020
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

#ifdef HAVE_CONFIG_H
Expand Down Expand Up @@ -452,7 +450,7 @@ void print_obj(FILE *stream, tabstruct *tab)
fprintf(stream, "F");
}
else
fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
fprintf(stream, *key->printf?key->printf:"%d", (int)*ptr);
if (i)
putc(' ', stream);
break;
Expand Down Expand Up @@ -480,8 +478,8 @@ INPUT Output stream
Table structure.
OUTPUT -.
NOTES -.
AUTHOR G. Tissier & E.Bertin (IAP)
VERSION 13/06/2012
AUTHOR G. Tissier (IAP) & E.Bertin (CEA/AIM/UParisSaclay)
VERSION 11/10/2024
***/
void voprint_obj(FILE *stream, tabstruct *tab)

Expand Down Expand Up @@ -538,7 +536,7 @@ void voprint_obj(FILE *stream, tabstruct *tab)
fprintf(stream, "F");
}
else
fprintf(stream, key->printf?key->printf:"%d", (int)*ptr);
fprintf(stream, *key->printf?key->printf:"%d", (int)*ptr);
if (i)
putc(' ', stream);
break;
Expand Down

0 comments on commit fed30a8

Please sign in to comment.