mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Removed use of deprecated bzero()
This commit is contained in:
parent
e6e1baaad5
commit
399598fd31
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ void stdout_configure(void)
|
|||
}
|
||||
|
||||
/* Prepare new stdout settings */
|
||||
bzero(&new_stdout, sizeof(new_stdout));
|
||||
memset(&new_stdout, 0, sizeof(new_stdout));
|
||||
|
||||
/* Control, input, output, local modes for stdout */
|
||||
new_stdout.c_cflag = 0;
|
||||
|
|
@ -158,7 +158,7 @@ void tty_configure(void)
|
|||
{
|
||||
unsigned int baudrate;
|
||||
|
||||
bzero(&tio, sizeof(tio));
|
||||
memset(&tio, 0, sizeof(tio));
|
||||
|
||||
/* Set speed */
|
||||
switch (option.baudrate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue