mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +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 */
|
/* Prepare new stdout settings */
|
||||||
bzero(&new_stdout, sizeof(new_stdout));
|
memset(&new_stdout, 0, sizeof(new_stdout));
|
||||||
|
|
||||||
/* Control, input, output, local modes for stdout */
|
/* Control, input, output, local modes for stdout */
|
||||||
new_stdout.c_cflag = 0;
|
new_stdout.c_cflag = 0;
|
||||||
|
|
@ -158,7 +158,7 @@ void tty_configure(void)
|
||||||
{
|
{
|
||||||
unsigned int baudrate;
|
unsigned int baudrate;
|
||||||
|
|
||||||
bzero(&tio, sizeof(tio));
|
memset(&tio, 0, sizeof(tio));
|
||||||
|
|
||||||
/* Set speed */
|
/* Set speed */
|
||||||
switch (option.baudrate)
|
switch (option.baudrate)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue