mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 19:52:00 +01:00
Problem: formatting inconsistent
Solution: applied clang-format
This commit is contained in:
@@ -106,7 +106,7 @@ static void *worker (void *ctx_)
|
||||
#endif
|
||||
}
|
||||
|
||||
int main (int argc, char *argv [])
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
#if defined ZMQ_HAVE_WINDOWS
|
||||
HANDLE local_thread;
|
||||
@@ -127,8 +127,8 @@ int main (int argc, char *argv [])
|
||||
return 1;
|
||||
}
|
||||
|
||||
message_size = atoi (argv [1]);
|
||||
roundtrip_count = atoi (argv [2]);
|
||||
message_size = atoi (argv[1]);
|
||||
roundtrip_count = atoi (argv[2]);
|
||||
|
||||
ctx = zmq_init (1);
|
||||
if (!ctx) {
|
||||
@@ -149,8 +149,7 @@ int main (int argc, char *argv [])
|
||||
}
|
||||
|
||||
#if defined ZMQ_HAVE_WINDOWS
|
||||
local_thread = (HANDLE) _beginthreadex (NULL, 0,
|
||||
worker, ctx, 0 , NULL);
|
||||
local_thread = (HANDLE) _beginthreadex (NULL, 0, worker, ctx, 0, NULL);
|
||||
if (local_thread == 0) {
|
||||
printf ("error in _beginthreadex\n");
|
||||
return -1;
|
||||
@@ -237,4 +236,3 @@ int main (int argc, char *argv [])
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user