avoid unused parameter warnings

This commit is contained in:
Thomas Lindner 2022-10-19 20:49:28 +02:00
parent 665710cf96
commit 7f8d0b0339
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@ int main(int argc, char **argv) {
struct tls_config *config;
Connection connection;
(void) argc, (void) argv;
tls_init();
config = tls_config_new();
connection_init(EV_DEFAULT_ & connection, config);

View file

@ -26,6 +26,7 @@ struct Buffer {
#endif
void connection_init(EV_P_ Connection *connection, struct tls_config *config) {
(void)(EV_A_ 0);
ev_io_init(&connection->watcher, NULL, STDIN_FILENO, 0);
connection->ctx = tls_client();
tls_configure(connection->ctx, config);