diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-16 07:16:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 07:16:29 (GMT) |
commit | 546d79dad7b75e58160a4110bd27c75272b69678 (patch) | |
tree | 6e2f94cdabc52b09572205ccac6cc571b56cdd91 /test | |
parent | 68eba3da69e659fab69bbef5901ce42e82cea1dc (diff) | |
download | hdf5-546d79dad7b75e58160a4110bd27c75272b69678.zip hdf5-546d79dad7b75e58160a4110bd27c75272b69678.tar.gz hdf5-546d79dad7b75e58160a4110bd27c75272b69678.tar.bz2 |
Remove HD prefix from network calls (#3142)
HDsocket(), etc. Only affects the mirror VFD and its test code.
Diffstat (limited to 'test')
-rw-r--r-- | test/mirror_vfd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mirror_vfd.c b/test/mirror_vfd.c index f950db0..8a1328f 100644 --- a/test/mirror_vfd.c +++ b/test/mirror_vfd.c @@ -2332,19 +2332,19 @@ confirm_server(struct mt_opts *opts) struct sockaddr_in target_addr; unsigned attempt = 0; - live_socket = HDsocket(AF_INET, SOCK_STREAM, 0); + live_socket = socket(AF_INET, SOCK_STREAM, 0); if (live_socket < 0) { HDprintf("ERROR socket()\n"); return -1; } target_addr.sin_family = AF_INET; - target_addr.sin_port = HDhtons((uint16_t)opts->portno); - target_addr.sin_addr.s_addr = HDinet_addr(opts->ip); + target_addr.sin_port = htons((uint16_t)opts->portno); + target_addr.sin_addr.s_addr = inet_addr(opts->ip); HDmemset(target_addr.sin_zero, '\0', sizeof(target_addr.sin_zero)); while (1) { - if (HDconnect(live_socket, (struct sockaddr *)&target_addr, (socklen_t)sizeof(target_addr)) < 0) { + if (connect(live_socket, (struct sockaddr *)&target_addr, (socklen_t)sizeof(target_addr)) < 0) { if (attempt > 10) { HDprintf("ERROR connect() (%d)\n%s\n", errno, HDstrerror(errno)); return -1; @@ -2362,7 +2362,7 @@ confirm_server(struct mt_opts *opts) HDprintf("attempt #%u: ERROR connect() (%d)\n%s\n", attempt, errno, HDstrerror(errno)); /* Re-open socket for retry */ - live_socket = HDsocket(AF_INET, SOCK_STREAM, 0); + live_socket = socket(AF_INET, SOCK_STREAM, 0); if (live_socket < 0) { HDprintf("ERROR socket()\n"); return -1; |