summaryrefslogtreecommitdiffstats
path: root/tools/h5jam/h5unjam.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/h5jam/h5unjam.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/h5jam/h5unjam.c')
-rw-r--r--tools/h5jam/h5unjam.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/h5jam/h5unjam.c b/tools/h5jam/h5unjam.c
index e68d6ac..e235cb5 100644
--- a/tools/h5jam/h5unjam.c
+++ b/tools/h5jam/h5unjam.c
@@ -55,18 +55,18 @@ static struct long_options l_opts[] = {
{"delet", no_arg, 'd'},
{"dele", no_arg, 'd'},
{"del", no_arg, 'd'},
- {"de", no_arg, 'd'},
+ {"de", no_arg, 'd'},
{ NULL, 0, '\0' }
};
/*-------------------------------------------------------------------------
* Function: usage
*
- * Purpose: Print the usage message
+ * Purpose: Print the usage message
*
* Return: void
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -89,11 +89,11 @@ usage(const char *prog)
*
* Purpose: Parse the command line for the h5dumper.
*
- * Return: Success:
+ * Return: Success:
*
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -148,7 +148,7 @@ parse_command_line(int argc, const char *argv[])
* Return: Success: 0
* Failure: 1
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -207,7 +207,7 @@ main(int argc, const char *argv[])
/* no user block to remove: message? */
error_msg(progname, "\"%s\" has no user block: no change to file\n", input_file);
exit(EXIT_SUCCESS);
-
+
}
res = stat(input_file, &sbuf);
@@ -260,14 +260,14 @@ main(int argc, const char *argv[])
}
- /* copy from 0 to 'usize - 1' into ufid */
+ /* copy from 0 to 'usize - 1' into ufid */
if (!do_delete) {
copy_to_file( ifid, ufid, 0, (ssize_t) usize);
}
- /* copy from usize to end of file into h5fid,
+ /* copy from usize to end of file into h5fid,
* starting at end of user block if present
- */
+ */
copy_to_file( ifid, h5fid, (ssize_t) usize, (ssize_t)(fsize - (ssize_t)usize) );
@@ -279,12 +279,12 @@ main(int argc, const char *argv[])
}
/*
- * Copy 'how_much' bytes from the input file to the output file,
+ * Copy 'how_much' bytes from the input file to the output file,
* starting at byte 'where' in the input file.
- *
+ *
* Returns the size of the output file.
*/
-hsize_t
+hsize_t
copy_to_file( int infid, int ofid, ssize_t where, ssize_t how_much ) {
char buf[1024];
off_t to;