net: tcp: Fixing the constness of TCP state debug string
Change-Id: I42a8271cf10efcd9ce67ef860a45fa54c0690387 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
e6b5239c33
commit
5ece8c26b5
2 changed files with 2 additions and 2 deletions
|
@ -548,7 +548,7 @@ int net_tcp_prepare_reset(struct net_tcp *tcp,
|
|||
return 0;
|
||||
}
|
||||
|
||||
const char const *net_tcp_state_str(enum net_tcp_state state)
|
||||
const char * const net_tcp_state_str(enum net_tcp_state state)
|
||||
{
|
||||
#if NET_DEBUG
|
||||
switch (state) {
|
||||
|
|
|
@ -194,7 +194,7 @@ static inline int net_tcp_unregister(struct net_conn_handle *handle)
|
|||
return net_conn_unregister(handle);
|
||||
}
|
||||
|
||||
const char const *net_tcp_state_str(enum net_tcp_state state);
|
||||
const char * const net_tcp_state_str(enum net_tcp_state state);
|
||||
|
||||
#if defined(CONFIG_NET_TCP)
|
||||
void net_tcp_change_state(struct net_tcp *tcp, enum net_tcp_state new_state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue