0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

remove c99 extention from c++11 code

This commit is contained in:
Keith Williams 2023-04-18 22:27:06 +01:00
parent 27dda213fe
commit abf2444f09

View File

@ -124,7 +124,7 @@ const char *cert =
void test_roundtrip () void test_roundtrip ()
{ {
char connect_address[MAX_SOCKET_STRING + strlen ("/roundtrip")]; char connect_address[MAX_SOCKET_STRING + sizeof ("/roundtrip") - 1];
size_t addr_length = sizeof (connect_address); size_t addr_length = sizeof (connect_address);
void *sb = test_context_socket (ZMQ_REP); void *sb = test_context_socket (ZMQ_REP);
zmq_setsockopt (sb, ZMQ_WSS_CERT_PEM, cert, strlen (cert)); zmq_setsockopt (sb, ZMQ_WSS_CERT_PEM, cert, strlen (cert));