GNUTLS: Fix up rb_ssl_listen()

Declare and assign variables at the same time; give function
parameters const correctness.
This commit is contained in:
Aaron Jones 2016-09-16 21:53:35 +00:00
parent 4369f1fa55
commit f4726edf7a
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -578,11 +578,10 @@ rb_setup_ssl_server(const char *const certfile, const char *keyfile,
}
int
rb_ssl_listen(rb_fde_t *F, int backlog, int defer_accept)
rb_ssl_listen(rb_fde_t *const F, const int backlog, const int defer_accept)
{
int result;
int result = rb_listen(F, backlog, defer_accept);
result = rb_listen(F, backlog, defer_accept);
F->type = RB_FD_SOCKET | RB_FD_LISTEN | RB_FD_SSL;
return result;