Renamed slightly misleading parameter names
@@ -73,9 +73,9 @@ typedef enum { S2N_SERVER, S2N_CLIENT } s2n_mode;
extern struct s2n_connection *s2n_connection_new(s2n_mode mode);
extern int s2n_connection_set_config(struct s2n_connection *conn, struct s2n_config *config);
-extern int s2n_connection_set_fd(struct s2n_connection *conn, int readfd);
+extern int s2n_connection_set_fd(struct s2n_connection *conn, int fd);
extern int s2n_connection_set_read_fd(struct s2n_connection *conn, int readfd);
-extern int s2n_connection_set_write_fd(struct s2n_connection *conn, int readfd);
+extern int s2n_connection_set_write_fd(struct s2n_connection *conn, int writefd);
typedef int s2n_recv_fn(void *io_context, uint8_t *buf, uint32_t len);
typedef int s2n_send_fn(void *io_context, const uint8_t *buf, uint32_t len);
