summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-05-10 16:48:30 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-05-10 16:48:30 (GMT)
commit55844f79e94d49f7ccc8fff1fa3d80f153bb13ea (patch)
tree54db1d6e7430a74623757611d86eeab81fc8ce0d /utils
parentf7bfa60bf9f591f03963137c8bb41b0d2b90a1c1 (diff)
downloadhdf5-55844f79e94d49f7ccc8fff1fa3d80f153bb13ea.zip
hdf5-55844f79e94d49f7ccc8fff1fa3d80f153bb13ea.tar.gz
hdf5-55844f79e94d49f7ccc8fff1fa3d80f153bb13ea.tar.bz2
Misc warning fixes.
Diffstat (limited to 'utils')
-rw-r--r--utils/mirror_vfd/mirror_server.c2
-rw-r--r--utils/mirror_vfd/mirror_server_stop.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/utils/mirror_vfd/mirror_server.c b/utils/mirror_vfd/mirror_server.c
index 2583e60..db7cf04 100644
--- a/utils/mirror_vfd/mirror_server.c
+++ b/utils/mirror_vfd/mirror_server.c
@@ -656,7 +656,7 @@ main(int argc, char **argv)
#else /* H5_HAVE_MIRROR_VFD */
int
-main(int argc, char **argv)
+main(void)
{
HDprintf("Mirror VFD was not built -- cannot launch server.\n");
HDexit(EXIT_FAILURE);
diff --git a/utils/mirror_vfd/mirror_server_stop.c b/utils/mirror_vfd/mirror_server_stop.c
index ccd5824..f2414e0 100644
--- a/utils/mirror_vfd/mirror_server_stop.c
+++ b/utils/mirror_vfd/mirror_server_stop.c
@@ -184,20 +184,20 @@ main(int argc, char **argv)
if (parse_args(argc, argv, &opts) < 0) {
HDprintf("Unable to parse arguments\n");
- return EXIT_FAILURE;
+ HDexit(EXIT_FAILURE);
}
if (opts.help) {
usage();
- return EXIT_SUCCESS;
+ HDexit(EXIT_FAILURE);
}
if (send_shutdown(&opts) < 0) {
HDprintf("Unable to send shutdown command\n");
- return EXIT_FAILURE;
+ HDexit(EXIT_FAILURE);
}
- return EXIT_SUCCESS;
+ HDexit(EXIT_SUCCESS);
} /* end main() */
#else /* H5_HAVE_MIRROR_VFD */
@@ -205,10 +205,10 @@ main(int argc, char **argv)
/* ------------------------------------------------------------------------- */
int
-main(int argc, char **argv)
+main(void)
{
HDprintf("Mirror VFD not built -- unable to perform shutdown.\n");
- return EXIT_FAILURE;
+ HDexit(EXIT_FAILURE);
}
#endif /* H5_HAVE_MIRROR_VFD */