CLEANUP: connection: rename the wait_event.task field to .tasklet
It's really confusing to call it a task because it's a tasklet and used
in places where tasks and tasklets are used together. Let's rename it
to tasklet to remove this confusion.
diff --git a/include/proto/stream_interface.h b/include/proto/stream_interface.h
index 50373ac..63f1738 100644
--- a/include/proto/stream_interface.h
+++ b/include/proto/stream_interface.h
@@ -122,11 +122,11 @@
si->end = NULL;
si->state = si->prev_state = SI_ST_INI;
si->ops = &si_embedded_ops;
- si->wait_event.task = tasklet_new();
- if (!si->wait_event.task)
+ si->wait_event.tasklet = tasklet_new();
+ if (!si->wait_event.tasklet)
return -1;
- si->wait_event.task->process = si_cs_io_cb;
- si->wait_event.task->context = si;
+ si->wait_event.tasklet->process = si_cs_io_cb;
+ si->wait_event.tasklet->context = si;
si->wait_event.events = 0;
return 0;
}