krb5/send_to_kdc.c: Sprinkle const on global data never changed.

This commit is contained in:
Taylor R Campbell
2023-05-28 20:29:48 +00:00
committed by Nico Williams
parent 796e420c11
commit b67a083a3c

View File

@@ -330,7 +330,7 @@ struct host {
krb5_krbhst_info *hi; krb5_krbhst_info *hi;
struct addrinfo *ai; struct addrinfo *ai;
rk_socket_t fd; rk_socket_t fd;
struct host_fun *fun; const struct host_fun *fun;
unsigned int tries; unsigned int tries;
time_t timeout; time_t timeout;
krb5_data data; krb5_data data;
@@ -715,19 +715,19 @@ recv_udp(krb5_context context, struct host *host, krb5_data *data)
return 0; return 0;
} }
static struct host_fun http_fun = { static const struct host_fun http_fun = {
prepare_http, prepare_http,
send_stream, send_stream,
recv_http, recv_http,
1 1
}; };
static struct host_fun tcp_fun = { static const struct host_fun tcp_fun = {
prepare_tcp, prepare_tcp,
send_stream, send_stream,
recv_tcp, recv_tcp,
1 1
}; };
static struct host_fun udp_fun = { static const struct host_fun udp_fun = {
prepare_udp, prepare_udp,
send_udp, send_udp,
recv_udp, recv_udp,