Skip to content

Commit fb3bb5f

Browse files
afni-rickrhjmjohnson
authored andcommitted
- add history entries
- fix status use in niftilib/nifti_tester001.c
1 parent 94e1638 commit fb3bb5f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

nifti2/nifti2_io.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,14 @@ static char const * const gni2_history[] =
400400
"2.11 3 Oct, 2019 [rickr]: added nifti_[d]mat33_mul\n",
401401
"2.1.0 18 Jun, 2020 [leej3,hmjohnson,rickr]:\n"
402402
" - changed to more formal library versioning\n",
403-
"2.1.0.1 - non-release update\n"
404-
" 2 Mar, 2022 [rickr]: cast a few more pedantic void*'s\n"
403+
"2.1.0.1 - non-release update - 2 Mar, 2022 [rickr]\n"
404+
" - cast a few more pedantic void*'s\n"
405+
"2.1.0.2 - non-release update - 16 Jun, 2022 [rickr]\n"
406+
" - add nifti_image_write_status\n",
405407
"----------------------------------------------------------------------\n"
406408
};
407409

408-
static const char gni_version[] = NIFTI2_IO_SOURCE_VERSION " (2 Mar, 2022)";
410+
static const char gni_version[] = NIFTI2_IO_SOURCE_VERSION " (16 Jun, 2022)";
409411

410412
/*! global nifti options structure - init with defaults */
411413
/* see 'option accessor functions' */

niftilib/nifti1_io.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,11 @@ static char const * const gni_history[] =
343343
" - nifti_read_ascii_image no longer closes fp or free's fname\n",
344344
"2.1.0 18 Jun 2020 [leej3,hmjohnson,rickr]:\n"
345345
" - big version jump - changed to more formal library versioning\n",
346+
"2.1.0.1 - non-release update - 16 Jun 2022 [rickr]:\n"
347+
" - add nifti_image_write_status\n",
346348
"----------------------------------------------------------------------\n"
347349
};
348-
static const char gni_version[] = NIFTI1_IO_SOURCE_VERSION " (18 Jun, 2020)";
350+
static const char gni_version[] = NIFTI1_IO_SOURCE_VERSION " (16 Jun, 2022)";
349351

350352
/*! global nifti options structure - init with defaults */
351353
static nifti_global_options g_opts = {

niftilib/nifti_tester001.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ int main (int argc, char *argv[])
226226
NIFTITEST_FALSE,&Errors);
227227
}
228228
PrintTest("Create reference image",reference_image==0,NIFTITEST_TRUE,&Errors);
229-
if( nifti_image_write( reference_image ) )
229+
if( nifti_image_write_status( reference_image ) )
230230
{
231231
printf("ERROR: failed to write nifti_image.");
232232
fflush(stdout);
233-
nifti_image_free(nim);
233+
nifti_image_free(reference_image);
234234
return EXIT_FAILURE;
235235
}
236236

@@ -358,7 +358,7 @@ int main (int argc, char *argv[])
358358
nifti_image * reference_image =
359359
generate_reference_image("TestAsciiImage.nia",&Errors);
360360
reference_image->nifti_type = 3;
361-
if( nifti_image_write( reference_image ) )
361+
if( nifti_image_write_status( reference_image ) )
362362
{
363363
printf("ERROR: failed to write nifti_image.");
364364
fflush(stdout);

0 commit comments

Comments
 (0)