avoid unused parameter warnings
This commit is contained in:
parent
665710cf96
commit
7f8d0b0339
|
@ -6,6 +6,7 @@ int main(int argc, char **argv) {
|
||||||
struct tls_config *config;
|
struct tls_config *config;
|
||||||
Connection connection;
|
Connection connection;
|
||||||
|
|
||||||
|
(void) argc, (void) argv;
|
||||||
tls_init();
|
tls_init();
|
||||||
config = tls_config_new();
|
config = tls_config_new();
|
||||||
connection_init(EV_DEFAULT_ & connection, config);
|
connection_init(EV_DEFAULT_ & connection, config);
|
||||||
|
|
|
@ -26,6 +26,7 @@ struct Buffer {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void connection_init(EV_P_ Connection *connection, struct tls_config *config) {
|
void connection_init(EV_P_ Connection *connection, struct tls_config *config) {
|
||||||
|
(void)(EV_A_ 0);
|
||||||
ev_io_init(&connection->watcher, NULL, STDIN_FILENO, 0);
|
ev_io_init(&connection->watcher, NULL, STDIN_FILENO, 0);
|
||||||
connection->ctx = tls_client();
|
connection->ctx = tls_client();
|
||||||
tls_configure(connection->ctx, config);
|
tls_configure(connection->ctx, config);
|
||||||
|
|
Loading…
Reference in a new issue