Commit b78cfb23 authored by Luca Boccassi's avatar Luca Boccassi

Problem: mismatching declarations and definitions break Solaris Studio build

Solution: add missing const qualifier to internal functions
parent 8b82ed50
...@@ -288,11 +288,11 @@ int do_getsockopt (void *const optval_, ...@@ -288,11 +288,11 @@ int do_getsockopt (void *const optval_,
int do_setsockopt_int_as_bool_strict (const void *const optval_, int do_setsockopt_int_as_bool_strict (const void *const optval_,
const size_t optvallen_, const size_t optvallen_,
bool *out_value_); bool *const out_value_);
int do_setsockopt_int_as_bool_relaxed (const void *const optval_, int do_setsockopt_int_as_bool_relaxed (const void *const optval_,
const size_t optvallen_, const size_t optvallen_,
bool *out_value_); bool *const out_value_);
} }
#endif #endif
...@@ -67,7 +67,7 @@ int tcp_read (fd_t s_, void *data_, size_t size_); ...@@ -67,7 +67,7 @@ int tcp_read (fd_t s_, void *data_, size_t size_);
// on network errors such as reset or aborted connections. // on network errors such as reset or aborted connections.
void tcp_assert_tuning_error (fd_t s_, int rc_); void tcp_assert_tuning_error (fd_t s_, int rc_);
void tcp_tune_loopback_fast_path (fd_t socket_); void tcp_tune_loopback_fast_path (const fd_t socket_);
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment