mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 13:58:36 +08:00
[compoenets] auto & manual formatted
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user