summaryrefslogtreecommitdiffstats
path: root/utils/mirror_vfd/mirror_remote.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-03-25 00:39:37 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-03-25 00:39:37 (GMT)
commitfeb20aac304b39e18c70f88cae2f7cf7d5c82db2 (patch)
treee15d7e751af4e3c42e77ea955d91db4cf27a71cf /utils/mirror_vfd/mirror_remote.h
parentbdac2ecdbff2c389a222b3d93ff1eb1d23ec6b23 (diff)
downloadhdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.zip
hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.gz
hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.bz2
Formats the source and updates the gcc warning pragmas
Diffstat (limited to 'utils/mirror_vfd/mirror_remote.h')
-rw-r--r--utils/mirror_vfd/mirror_remote.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/utils/mirror_vfd/mirror_remote.h b/utils/mirror_vfd/mirror_remote.h
index 9132d51..40e8158 100644
--- a/utils/mirror_vfd/mirror_remote.h
+++ b/utils/mirror_vfd/mirror_remote.h
@@ -26,26 +26,23 @@
#define V_INFO 3
#define V_ALL 4
-#define MIRROR_LOG_DEFAULT_STREAM stdout
+#define MIRROR_LOG_DEFAULT_STREAM stdout
#define MIRROR_LOG_DEFAULT_VERBOSITY V_WARN
-#define MIRROR_LOG_PREFIX_MAX 79
-#define MIRROR_LOG_INFO_MAGIC 0x569D589A
+#define MIRROR_LOG_PREFIX_MAX 79
+#define MIRROR_LOG_INFO_MAGIC 0x569D589A
typedef struct mirror_log_info {
- uint32_t magic;
- FILE *stream;
+ uint32_t magic;
+ FILE * stream;
unsigned int verbosity;
- char prefix[MIRROR_LOG_PREFIX_MAX+1];
+ char prefix[MIRROR_LOG_PREFIX_MAX + 1];
} loginfo_t;
-void mirror_log(loginfo_t *info, unsigned int level,
- const char *format, ...);
-void mirror_log_bytes(loginfo_t *info, unsigned int level,
- size_t n_bytes, const unsigned char *buf);
+void mirror_log(loginfo_t *info, unsigned int level, const char *format, ...);
+void mirror_log_bytes(loginfo_t *info, unsigned int level, size_t n_bytes, const unsigned char *buf);
loginfo_t *mirror_log_init(char *path, char *prefix, unsigned int verbosity);
-int mirror_log_term(loginfo_t *loginfo);
+int mirror_log_term(loginfo_t *loginfo);
herr_t run_writer(int socketfd, H5FD_mirror_xmit_open_t *xmit_open);
#endif /* H5_HAVE_MIRROR_VFD */
-