diff options
author | Quincey Koziol <koziol@lbl.gov> | 2021-01-07 22:16:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 22:16:00 (GMT) |
commit | e3b7d68826b5ce54518220d80dfb723f04c7b486 (patch) | |
tree | 043401e2221af79b80dcf11c3991674217f1a7ac /tools/src/misc/h5delete.c | |
parent | 3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a (diff) | |
download | hdf5-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.c | 16 |
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; } |