summaryrefslogtreecommitdiffstats
path: root/tools/src/misc/h5delete.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2021-01-07 22:16:00 (GMT)
committerGitHub <noreply@github.com>2021-01-07 22:16:00 (GMT)
commite3b7d68826b5ce54518220d80dfb723f04c7b486 (patch)
tree043401e2221af79b80dcf11c3991674217f1a7ac /tools/src/misc/h5delete.c
parent3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a (diff)
downloadhdf5-e3b7d68826b5ce54518220d80dfb723f04c7b486.zip
hdf5-e3b7d68826b5ce54518220d80dfb723f04c7b486.tar.gz
hdf5-e3b7d68826b5ce54518220d80dfb723f04c7b486.tar.bz2
Reformat source (#244)
Diffstat (limited to 'tools/src/misc/h5delete.c')
-rw-r--r--tools/src/misc/h5delete.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/src/misc/h5delete.c b/tools/src/misc/h5delete.c
index 028c6c0..15a70d3 100644
--- a/tools/src/misc/h5delete.c
+++ b/tools/src/misc/h5delete.c
@@ -32,8 +32,8 @@ int
main(int argc, const char *argv[])
{
hbool_t quiet = FALSE;
- const char *name = NULL;
- int ret = 0;
+ const char *name = NULL;
+ int ret = 0;
switch (argc) {
case 3:
@@ -42,7 +42,7 @@ main(int argc, const char *argv[])
return EXIT_FAILURE;
}
quiet = TRUE;
- name = argv[2];
+ name = argv[2];
break;
case 2:
name = argv[1];
@@ -52,20 +52,22 @@ main(int argc, const char *argv[])
return EXIT_FAILURE;
}
- H5E_BEGIN_TRY {
+ H5E_BEGIN_TRY
+ {
/* Only uses the environment variable at this time */
ret = (int)H5Fdelete(name, H5P_DEFAULT);
- } H5E_END_TRY;
+ }
+ H5E_END_TRY;
/* The native VOL connector does not implement the H5Fdelete() call
* at this time, so try to remove the file via the POSIX remove(3)
* call on failures.
*/
if (ret < 0)
- ret = HDremove(name);
+ ret = HDremove(name);
if (ret < 0 && !quiet)
- HDfprintf(stderr, "Unable to delete storage at: %s\n", name);
+ HDfprintf(stderr, "Unable to delete storage at: %s\n", name);
return ret < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}