projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Put return type on same line as arguments for functions.
[openvswitch]
/
tests
/
test-vconn.c
diff --git
a/tests/test-vconn.c
b/tests/test-vconn.c
index a394f6cfbc20562b2148e11baa8ba1aafd80609d..adddc682d1770af602901f386e2a618f5e0658a4 100644
(file)
--- a/
tests/test-vconn.c
+++ b/
tests/test-vconn.c
@@
-141,7
+141,9
@@
test_refuse_connection(int argc OVS_UNUSED, char *argv[])
struct fake_pvconn fpv;
struct vconn *vconn;
struct fake_pvconn fpv;
struct vconn *vconn;
- expected_error = !strcmp(type, "unix") ? EPIPE : ECONNRESET;
+ expected_error = (!strcmp(type, "unix") ? EPIPE
+ : !strcmp(type, "tcp") ? ECONNRESET
+ : EPROTO);
fpv_create(type, &fpv);
CHECK_ERRNO(vconn_open(fpv.vconn_name, OFP_VERSION, &vconn), 0);
fpv_create(type, &fpv);
CHECK_ERRNO(vconn_open(fpv.vconn_name, OFP_VERSION, &vconn), 0);
@@
-396,7
+398,7
@@
static const struct command commands[] = {
};
int
};
int
-main(int argc
OVS_UNUSED
, char *argv[])
+main(int argc, char *argv[])
{
set_program_name(argv[0]);
time_init();
{
set_program_name(argv[0]);
time_init();