Problem: mismatching declarations and definitions break Solaris Studio build

Solution: add missing const qualifier to internal functions
This commit is contained in:
Luca Boccassi 2018-05-13 13:17:20 +01:00
parent 8b82ed50a2
commit b78cfb2395
2 changed files with 3 additions and 3 deletions

View File

@ -288,11 +288,11 @@ int do_getsockopt (void *const optval_,
int do_setsockopt_int_as_bool_strict (const void *const optval_,
const size_t optvallen_,
bool *out_value_);
bool *const out_value_);
int do_setsockopt_int_as_bool_relaxed (const void *const optval_,
const size_t optvallen_,
bool *out_value_);
bool *const out_value_);
}
#endif

View File

@ -67,7 +67,7 @@ int tcp_read (fd_t s_, void *data_, size_t size_);
// on network errors such as reset or aborted connections.
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