diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-05-10 16:48:30 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:37:20 (GMT) |
commit | 29fca624e567af0dd01ac27d0d9bfa4373c62246 (patch) | |
tree | c318ccd6a23c9f871e15b3c52ca6e25ef87ba985 /utils/mirror_vfd | |
parent | ef51913e29fc1c6f4d46ef6f96963eb5bd674809 (diff) | |
download | hdf5-29fca624e567af0dd01ac27d0d9bfa4373c62246.zip hdf5-29fca624e567af0dd01ac27d0d9bfa4373c62246.tar.gz hdf5-29fca624e567af0dd01ac27d0d9bfa4373c62246.tar.bz2 |
Misc warning fixes.
Diffstat (limited to 'utils/mirror_vfd')
-rw-r--r-- | utils/mirror_vfd/mirror_server.c | 2 | ||||
-rw-r--r-- | utils/mirror_vfd/mirror_server_stop.c | 12 |
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 */ |