Commit 150b7057 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su/torture_su_port.c: fixed whitespace

darcs-hash:20081127130743-db55f-7979165123d3b44d59d46dd916560dc901ec144a.gz
parent b7ce5755
...@@ -85,7 +85,7 @@ int test_sup_indices(su_port_t const *port) ...@@ -85,7 +85,7 @@ int test_sup_indices(su_port_t const *port)
if (n != port->sup_n_waits) if (n != port->sup_n_waits)
return 0; return 0;
n = 0; n = 0;
for (i = 1; i <= N; i++) { for (i = 1; i <= N; i++) {
...@@ -108,19 +108,19 @@ int test_sup_indices(su_port_t const *port) ...@@ -108,19 +108,19 @@ int test_sup_indices(su_port_t const *port)
return n == port->sup_size_waits; return n == port->sup_size_waits;
} }
struct su_root_magic_s struct su_root_magic_s
{ {
int error, *sockets, *regs, *wakeups; int error, *sockets, *regs, *wakeups;
}; };
static int callback(su_root_magic_t *magic, static int callback(su_root_magic_t *magic,
su_wait_t *w, su_wait_t *w,
su_wakeup_arg_t *arg) su_wakeup_arg_t *arg)
{ {
intptr_t i = (intptr_t)arg; intptr_t i = (intptr_t)arg;
assert(magic); assert(magic);
if (i <= 0 || i > I) if (i <= 0 || i > I)
return ++magic->error; return ++magic->error;
...@@ -208,7 +208,7 @@ int test_register(void) ...@@ -208,7 +208,7 @@ int test_register(void)
if (bind(sockets[i], &su->su_sa, sizeof su->su_sin) != 0) if (bind(sockets[i], &su->su_sa, sizeof su->su_sin) != 0)
perror("bind"), assert(0); perror("bind"), assert(0);
TEST(su_wait_create(wait + i, sockets[i], SU_WAIT_IN), 0); TEST(su_wait_create(wait + i, sockets[i], SU_WAIT_IN), 0);
reg[i] = su_port_register(port, root, wait + i, callback, (void*)i, 0); reg[i] = su_port_register(port, root, wait + i, callback, (void*)i, 0);
...@@ -285,7 +285,7 @@ int test_register(void) ...@@ -285,7 +285,7 @@ int test_register(void)
#if HAVE_EPOLL #if HAVE_EPOLL
/* With epoll we do not bother to prioritize the wait list */ /* With epoll we do not bother to prioritize the wait list */
if (port->sup_epoll == -1) if (port->sup_epoll == -1)
#endif #endif
TEST(port->sup_pri_offset, prioritized); TEST(port->sup_pri_offset, prioritized);
......
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