diff options
| author | Wayne Lin <[email protected]> | 2021-05-12 18:39:35 +0800 |
|---|---|---|
| committer | Wayne Lin <[email protected]> | 2021-05-12 18:39:35 +0800 |
| commit | f068908728afbcf2ab69b5949c286891150f3aca (patch) | |
| tree | ad931747ed4df603de13176697daf6cdfbbd2e98 /components/net/sal_socket/socket | |
| parent | 0e9054f7952d5e521268df3919067f62f0e2724d (diff) | |
| parent | 1c823b3fc07111e3ce46d09574ff9bcda87a4d7f (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
Diffstat (limited to 'components/net/sal_socket/socket')
| -rw-r--r-- | components/net/sal_socket/socket/net_netdb.c | 2 | ||||
| -rw-r--r-- | components/net/sal_socket/socket/net_sockets.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/net/sal_socket/socket/net_netdb.c b/components/net/sal_socket/socket/net_netdb.c index bc76a48965..03b995c68d 100644 --- a/components/net/sal_socket/socket/net_netdb.c +++ b/components/net/sal_socket/socket/net_netdb.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/net/sal_socket/socket/net_sockets.c b/components/net/sal_socket/socket/net_sockets.c index a53b2f1f9c..3637635d50 100644 --- a/components/net/sal_socket/socket/net_sockets.c +++ b/components/net/sal_socket/socket/net_sockets.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -95,7 +95,7 @@ int shutdown(int s, int how) rt_set_errno(-EBADF); return -1; } - + if (sal_shutdown(socket, how) == 0) { error = 0; @@ -105,7 +105,7 @@ int shutdown(int s, int how) rt_set_errno(-ENOTSOCK); error = -1; } - + fd_put(d); return error; |
