summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_main.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /tools/h5repack/h5repack_main.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'tools/h5repack/h5repack_main.c')
-rw-r--r--tools/h5repack/h5repack_main.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c
index 8771328..665f8e1 100644
--- a/tools/h5repack/h5repack_main.c
+++ b/tools/h5repack/h5repack_main.c
@@ -22,7 +22,7 @@ static void usage(void);
*
* Purpose: h5repack main program
*
- * Return: 1, error, 0, no error
+ * Return: 1, error, 0, no error
*
* Programmer: Pedro Vicente, pvn@ncsa.uiuc.edu
*
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
/* initialize options */
h5repack_init (&options,0);
- for ( i = 1; i < argc; i++)
+ for ( i = 1; i < argc; i++)
{
if (strcmp(argv[i], "-h") == 0) {
usage();
@@ -56,14 +56,14 @@ int main(int argc, char **argv)
if (strcmp(argv[i], "-i") == 0) {
infile = argv[++i];
}
- else if (strcmp(argv[i], "-o") == 0) {
- outfile = argv[++i];
+ else if (strcmp(argv[i], "-o") == 0) {
+ outfile = argv[++i];
}
- else if (strcmp(argv[i], "-v") == 0) {
+ else if (strcmp(argv[i], "-v") == 0) {
options.verbose = 1;
}
- else if (strcmp(argv[i], "-f") == 0) {
-
+ else if (strcmp(argv[i], "-f") == 0) {
+
/* add the -f filter option */
if (h5repack_addfilter(argv[i+1],&options)<0)
exit(1);
@@ -71,17 +71,17 @@ int main(int argc, char **argv)
/* jump to next */
++i;
}
- else if (strcmp(argv[i], "-l") == 0) {
-
+ else if (strcmp(argv[i], "-l") == 0) {
+
/* parse the -l layout option */
if (h5repack_addlayout(argv[i+1],&options)<0)
exit(1);
-
+
/* jump to next */
++i;
}
- else if (strcmp(argv[i], "-m") == 0) {
+ else if (strcmp(argv[i], "-m") == 0) {
options.threshold = parse_number(argv[i+1]);
if ((int)options.threshold==-1) {
printf("Error: Invalid treshold size <%s>\n",argv[i+1]);
@@ -89,23 +89,23 @@ int main(int argc, char **argv)
}
++i;
}
-
- else if (strcmp(argv[i], "-e") == 0) {
+
+ else if (strcmp(argv[i], "-e") == 0) {
read_info(argv[++i],&options);
}
-
+
else if (argv[i][0] == '-') {
usage();
exit(1);
}
}
- if (infile == NULL || outfile == NULL)
+ if (infile == NULL || outfile == NULL)
{
usage();
exit(1);
}
-
+
/* pack it */
ret=h5repack(infile,outfile,&options);
@@ -128,7 +128,7 @@ int main(int argc, char **argv)
*-------------------------------------------------------------------------
*/
-static
+static
void usage(void)
{
printf("h5repack -i input -o output [-h] [-v] [-f 'filter'] [-l 'layout'][-m number][-e file] \n");