diff options
| author | 7YZ7 <[email protected]> | 2023-04-18 10:26:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-17 22:26:23 -0400 |
| commit | 501b22aabede2d4e179bfc47f3b75522e5933da4 (patch) | |
| tree | 2a4c160aabc412aaded6b83ec22238bf37cab30c /components/drivers/tty | |
| parent | 3f44132ade0d45e7851f46d6bb1241d10eccfff5 (diff) | |
[HUST CSE] Fix many abnormal symbols in annotations and format code
Diffstat (limited to 'components/drivers/tty')
| -rw-r--r-- | components/drivers/tty/console.c | 2 | ||||
| -rw-r--r-- | components/drivers/tty/include/console.h | 2 | ||||
| -rw-r--r-- | components/drivers/tty/include/tty.h | 2 | ||||
| -rw-r--r-- | components/drivers/tty/include/tty_ldisc.h | 2 | ||||
| -rw-r--r-- | components/drivers/tty/n_tty.c | 2 | ||||
| -rw-r--r-- | components/drivers/tty/pty.c | 2 | ||||
| -rw-r--r-- | components/drivers/tty/tty.c | 2 | ||||
| -rw-r--r-- | components/drivers/tty/tty_ioctl.c | 4 | ||||
| -rw-r--r-- | components/drivers/tty/tty_ldisc.c | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/components/drivers/tty/console.c b/components/drivers/tty/console.c index cb7b9049f4..12e1ad629b 100644 --- a/components/drivers/tty/console.c +++ b/components/drivers/tty/console.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/include/console.h b/components/drivers/tty/include/console.h index 779d816d4b..653b31fade 100644 --- a/components/drivers/tty/include/console.h +++ b/components/drivers/tty/include/console.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/include/tty.h b/components/drivers/tty/include/tty.h index 6a966262a9..e82dfafbea 100644 --- a/components/drivers/tty/include/tty.h +++ b/components/drivers/tty/include/tty.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/include/tty_ldisc.h b/components/drivers/tty/include/tty_ldisc.h index 619bca6dec..9b95fd3591 100644 --- a/components/drivers/tty/include/tty_ldisc.h +++ b/components/drivers/tty/include/tty_ldisc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/n_tty.c b/components/drivers/tty/n_tty.c index 00448dd636..d0fd9f8f65 100644 --- a/components/drivers/tty/n_tty.c +++ b/components/drivers/tty/n_tty.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/pty.c b/components/drivers/tty/pty.c index 0db50360bd..acb217ecbc 100644 --- a/components/drivers/tty/pty.c +++ b/components/drivers/tty/pty.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/tty.c b/components/drivers/tty/tty.c index 1573b13a7b..40e22ad153 100644 --- a/components/drivers/tty/tty.c +++ b/components/drivers/tty/tty.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/components/drivers/tty/tty_ioctl.c b/components/drivers/tty/tty_ioctl.c index f7e0d495da..e1982ee3ea 100644 --- a/components/drivers/tty/tty_ioctl.c +++ b/components/drivers/tty/tty_ioctl.c @@ -85,8 +85,8 @@ int n_tty_ioctl_extend(struct tty_struct *tty, int cmd, void *args) if (tio == RT_NULL) { return -RT_EINVAL; - } - + } + rt_memcpy(tio, &real_tty->init_termios, sizeof(real_tty->init_termios)); return ret; } diff --git a/components/drivers/tty/tty_ldisc.c b/components/drivers/tty/tty_ldisc.c index f736812414..2f13c60d14 100644 --- a/components/drivers/tty/tty_ldisc.c +++ b/components/drivers/tty/tty_ldisc.c @@ -106,7 +106,7 @@ void tty_ldisc_kill(struct tty_struct *tty) { if (!tty->ldisc) { - return; + return; } /* |
