Commit 37adb2cf authored by julien.delange's avatar julien.delange
Browse files

* no longer use bzero since this function is deprecated



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@1920 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 929a686b
......@@ -140,7 +140,7 @@ void __po_hi_c_driver_serial_linux_init_sender (__po_hi_device_id id)
}
tcgetattr (po_hi_c_driver_serial_fd_write, &oldtio); /* save current serial port settings */
bzero (&newtio, sizeof(newtio)); /* clear struct for new port settings */
memset (&newtio, '\0', sizeof(newtio)); /* clear struct for new port settings */
/*
* BAUDRATE: Set bps rate. You could also use cfsetispeed and cfsetospeed.
......@@ -233,7 +233,7 @@ void __po_hi_c_driver_serial_linux_init_receiver (__po_hi_device_id id)
}
tcgetattr (po_hi_c_driver_serial_fd_read, &oldtio); /* save current serial port settings */
bzero (&newtio, sizeof(newtio)); /* clear struct for new port settings */
memset (&newtio, '\0', sizeof(newtio)); /* clear struct for new port settings */
/*
* BAUDRATE: Set bps rate. You could also use cfsetispeed and cfsetospeed.
......@@ -309,7 +309,7 @@ void __po_hi_c_driver_serial_linux_init (__po_hi_device_id id)
}
tcgetattr (po_hi_c_driver_serial_fd_read, &oldtio); /* save current serial port settings */
bzero (&newtio, sizeof(newtio)); /* clear struct for new port settings */
memset (&newtio, '\0', sizeof(newtio)); /* clear struct for new port settings */
/*
* BAUDRATE: Set bps rate. You could also use cfsetispeed and cfsetospeed.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment