summaryrefslogtreecommitdiffstats
path: root/utils/mirror_vfd
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-26 21:45:46 (GMT)
committerGitHub <noreply@github.com>2022-07-26 21:45:46 (GMT)
commitae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch)
treeb616f33f5daa89f213e7c64e04c63afde906e939 /utils/mirror_vfd
parent213eac2588369f75a11df6bb1788dde33c4b82e2 (diff)
downloadhdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2
Develop clang 13 format (#1933)
* Update format source to clang 13 * More format changes
Diffstat (limited to 'utils/mirror_vfd')
-rw-r--r--utils/mirror_vfd/mirror_remote.c4
-rw-r--r--utils/mirror_vfd/mirror_remote.h2
-rw-r--r--utils/mirror_vfd/mirror_server.c6
-rw-r--r--utils/mirror_vfd/mirror_writer.c14
4 files changed, 13 insertions, 13 deletions
diff --git a/utils/mirror_vfd/mirror_remote.c b/utils/mirror_vfd/mirror_remote.c
index 8bb9544..170d61d 100644
--- a/utils/mirror_vfd/mirror_remote.c
+++ b/utils/mirror_vfd/mirror_remote.c
@@ -29,7 +29,7 @@
void
mirror_log(struct mirror_log_info *info, unsigned int level, const char *format, ...)
{
- FILE * stream = MIRROR_LOG_DEFAULT_STREAM;
+ FILE *stream = MIRROR_LOG_DEFAULT_STREAM;
unsigned int verbosity = MIRROR_LOG_DEFAULT_VERBOSITY;
hbool_t custom = FALSE;
@@ -80,7 +80,7 @@ mirror_log(struct mirror_log_info *info, unsigned int level, const char *format,
void
mirror_log_bytes(struct mirror_log_info *info, unsigned int level, size_t n_bytes, const unsigned char *buf)
{
- FILE * stream = MIRROR_LOG_DEFAULT_STREAM;
+ FILE *stream = MIRROR_LOG_DEFAULT_STREAM;
unsigned int verbosity = MIRROR_LOG_DEFAULT_VERBOSITY;
if (buf == NULL) {
diff --git a/utils/mirror_vfd/mirror_remote.h b/utils/mirror_vfd/mirror_remote.h
index 9415f7f..02cf41b 100644
--- a/utils/mirror_vfd/mirror_remote.h
+++ b/utils/mirror_vfd/mirror_remote.h
@@ -35,7 +35,7 @@
typedef struct mirror_log_info {
uint32_t magic;
- FILE * stream;
+ FILE *stream;
unsigned int verbosity;
char prefix[MIRROR_LOG_PREFIX_MAX + 1];
} loginfo_t;
diff --git a/utils/mirror_vfd/mirror_server.c b/utils/mirror_vfd/mirror_server.c
index d6b5254..95480dc 100644
--- a/utils/mirror_vfd/mirror_server.c
+++ b/utils/mirror_vfd/mirror_server.c
@@ -143,7 +143,7 @@ static void
mybzero(void *dest, size_t size)
{
size_t i = 0;
- char * s = NULL;
+ char *s = NULL;
HDassert(dest);
s = (char *)dest;
for (i = 0; i < size; i++) {
@@ -403,8 +403,8 @@ accept_connection(struct server_run *run)
{
struct sockaddr_in client_addr; /**/
socklen_t clilen; /**/
- struct hostent * host_port = NULL; /**/
- char * hostaddrp; /**/
+ struct hostent *host_port = NULL; /**/
+ char *hostaddrp; /**/
int connfd = -1; /* connection file descriptor */
if (run == NULL || run->magic != SERVER_RUN_MAGIC) {
diff --git a/utils/mirror_vfd/mirror_writer.c b/utils/mirror_vfd/mirror_writer.c
index 5726db5..f8d7544 100644
--- a/utils/mirror_vfd/mirror_writer.c
+++ b/utils/mirror_vfd/mirror_writer.c
@@ -88,8 +88,8 @@ struct mirror_session {
int sockfd;
uint32_t token;
uint32_t xmit_count;
- H5FD_t * file;
- loginfo_t * loginfo;
+ H5FD_t *file;
+ loginfo_t *loginfo;
H5FD_mirror_xmit_reply_t reply;
};
@@ -127,7 +127,7 @@ struct sock_comm {
uint32_t magic;
int recd_die;
H5FD_mirror_xmit_t *xmit_recd;
- char * raw;
+ char *raw;
size_t raw_size;
};
@@ -151,7 +151,7 @@ struct sock_comm {
*/
struct mirror_writer_opts {
uint32_t magic;
- char * logpath;
+ char *logpath;
};
static void mybzero(void *dest, size_t size);
@@ -171,7 +171,7 @@ static void
mybzero(void *dest, size_t size)
{
size_t i = 0;
- char * s = NULL;
+ char *s = NULL;
HDassert(dest);
s = (char *)dest;
for (i = 0; i < size; i++) {
@@ -289,7 +289,7 @@ session_stop(struct mirror_session *session)
static struct mirror_session *
session_start(int socketfd, const H5FD_mirror_xmit_open_t *xmit_open)
{
- struct mirror_session * session = NULL;
+ struct mirror_session *session = NULL;
struct mirror_writer_opts opts;
#if 0 /* TODO: behaviro option */
char logpath[H5FD_MIRROR_XMIT_FILEPATH_MAX] = "";
@@ -731,7 +731,7 @@ do_write(struct mirror_session *session, const unsigned char *xmit_buf)
haddr_t addr = 0;
haddr_t sum_bytes_written = 0;
H5FD_mem_t type = 0;
- char * buf = NULL;
+ char *buf = NULL;
ssize_t nbytes_in_packet = 0;
H5FD_mirror_xmit_write_t xmit_write;