summaryrefslogtreecommitdiffstats
path: root/tools/src/h5import/h5import.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-05-18 16:41:05 (GMT)
committerGitHub <noreply@github.com>2023-05-18 16:41:05 (GMT)
commit2b70d0dfdfa810e6c7b4e6d35922e58574c487f6 (patch)
tree470ac82a06150779ebf8ae99d202d1e135c95644 /tools/src/h5import/h5import.c
parent6fa5b7a04e73a514edbedab75d3914536939f7ef (diff)
downloadhdf5-2b70d0dfdfa810e6c7b4e6d35922e58574c487f6.zip
hdf5-2b70d0dfdfa810e6c7b4e6d35922e58574c487f6.tar.gz
hdf5-2b70d0dfdfa810e6c7b4e6d35922e58574c487f6.tar.bz2
Add h5copy help test and verify consistency (#2903)
Diffstat (limited to 'tools/src/h5import/h5import.c')
-rw-r--r--tools/src/h5import/h5import.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index bda7ea0..3984b5c 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -342,9 +342,6 @@ gtoken(char *s)
*
* Programmer: pkmat
*
- * Modifications: pvn
- * 7/23/2007. Added support for STR type, extra parameter FILE_ID
- *
*-------------------------------------------------------------------------
*/
@@ -455,7 +452,7 @@ processDataFile(char *infile, struct Input *in, hid_t file_id)
error:
if (strm)
HDfclose(strm);
- return (retval);
+ return retval;
}
static int
@@ -1428,10 +1425,10 @@ processConfigurationFile(char *infile, struct Input *in)
const char *err19 = "Unable to get integer value.\n";
const char *err20 = "Unable to get subset values.\n";
- /* create vector to map which keywords have been found
- check vector after each keyword to check for violation
- at the end check vector to see if required fields have been provided
- process the output file according to the options
+ /* - create vector to map which keywords have been found
+ * - check vector after each keyword to check for violation
+ * - at the end check vector to see if required fields have been provided
+ * - process the output file according to the options
*/
/* Initialize machine endian */
@@ -2434,7 +2431,7 @@ processConfigurationFile(char *infile, struct Input *in)
error:
if (strm)
HDfclose(strm);
- return (retval);
+ return retval;
}
static int
@@ -4742,7 +4739,7 @@ process(struct Options *opt)
} /* STR */
H5Fclose(file_id);
- return (0);
+ return 0;
}
uint16_t
@@ -5084,7 +5081,7 @@ help(char *name)
void
usage(char *name)
{
- (void)HDfprintf(stdout, "\nUsage:\t%s -h[elp], OR\n", name);
+ (void)HDfprintf(stdout, "\nusage:\t%s -h[elp], OR\n", name);
(void)HDfprintf(stdout, "\t%s <infile> -c[onfig] <configfile> \
[<infile> -c[config] <configfile>...] -o[utfile] <outfile> \n\n",
name);