Commit 08f6a9e7 authored by Arthur O'Dwyer's avatar Arthur O'Dwyer

Remove unused argc/argv parameters in tests.

parent c29aef4d
...@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../include/zmq.h" #include "../include/zmq.h"
static void *server (void *c) static void *server (void *)
{ {
void *socket, *context; void *socket, *context;
char buffer[16]; char buffer[16];
...@@ -88,7 +88,7 @@ static void *server (void *c) ...@@ -88,7 +88,7 @@ static void *server (void *c)
pthread_exit(NULL); pthread_exit(NULL);
} }
static void *worker (void *n) static void *worker (void *)
{ {
void *socket, *context; void *socket, *context;
int rc, hadone, val; int rc, hadone, val;
...@@ -131,7 +131,7 @@ static void *worker (void *n) ...@@ -131,7 +131,7 @@ static void *worker (void *n)
pthread_exit(NULL); pthread_exit(NULL);
} }
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_connect_delay running...\n"); fprintf (stderr, "test_connect_delay running...\n");
int val; int val;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "../include/zmq.h" #include "../include/zmq.h"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_connect_resolve running...\n"); fprintf (stderr, "test_connect_resolve running...\n");
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_hwm running...\n"); fprintf (stderr, "test_hwm running...\n");
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_invalid_rep running...\n"); fprintf (stderr, "test_invalid_rep running...\n");
......
...@@ -35,7 +35,7 @@ static void do_bind_and_verify (void *s, const char *endpoint) ...@@ -35,7 +35,7 @@ static void do_bind_and_verify (void *s, const char *endpoint)
assert (rc == 0 && strcmp (test, endpoint) == 0); assert (rc == 0 && strcmp (test, endpoint) == 0);
} }
int main (int argc, char *argv []) int main (void)
{ {
// Create the infrastructure // Create the infrastructure
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "../include/zmq.h" #include "../include/zmq.h"
int main (int argc, char *argv []) int main (void)
{ {
// Create the infrastructure // Create the infrastructure
void *ctx = zmq_init (0); void *ctx = zmq_init (0);
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_pair_inproc running...\n"); fprintf (stderr, "test_pair_inproc running...\n");
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_pair_ipc running...\n"); fprintf (stderr, "test_pair_ipc running...\n");
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_pair_tcp running...\n"); fprintf (stderr, "test_pair_tcp running...\n");
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "../include/zmq.h" #include "../include/zmq.h"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_reqrep_device running...\n"); fprintf (stderr, "test_reqrep_device running...\n");
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_reqrep_inproc running...\n"); fprintf (stderr, "test_reqrep_inproc running...\n");
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_reqrep_ipc running...\n"); fprintf (stderr, "test_reqrep_ipc running...\n");
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_reqrep_tcp running...\n"); fprintf (stderr, "test_reqrep_tcp running...\n");
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_router_behavior running...\n"); fprintf (stderr, "test_router_behavior running...\n");
......
...@@ -44,7 +44,7 @@ extern "C" ...@@ -44,7 +44,7 @@ extern "C"
} }
} }
int main (int argc, char *argv []) int main (void)
{ {
void *ctx; void *ctx;
void *s1; void *s1;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "../include/zmq.h" #include "../include/zmq.h"
#include "../include/zmq_utils.h" #include "../include/zmq_utils.h"
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_sub_forward running...\n"); fprintf (stderr, "test_sub_forward running...\n");
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "../include/zmq_utils.h" #include "../include/zmq_utils.h"
int main (int argc, char *argv []) int main (void)
{ {
int rc; int rc;
char buf[32]; char buf[32];
......
...@@ -44,7 +44,7 @@ extern "C" ...@@ -44,7 +44,7 @@ extern "C"
} }
} }
int main (int argc, char *argv []) int main (void)
{ {
fprintf (stderr, "test_timeo running...\n"); fprintf (stderr, "test_timeo running...\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment