Skip to content
Snippets Groups Projects
Commit 3f8b40f0 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

Eliminate non-portable comment style.

Check for any use of division (unavailable on LM32)
parent 72bf9b64
No related merge requests found
......@@ -70,8 +70,10 @@ void eb_device_flush(eb_device_t devicep) {
device = EB_DEVICE(devicep);
transport = EB_TRANSPORT(device->transport);
// assert (device->passive != devicep);
// assert (eb_width_refined(device->widths) != 0);
/*
assert (device->passive != devicep);
assert (eb_width_refined(device->widths) != 0);
*/
/* Calculate alignment values */
data = device->widths & EB_DATAX;
......
......@@ -70,6 +70,7 @@ int eb_socket_block(eb_socket_t socketp, int timeout_us) {
if (timeout_us < 0) timeout_us = 0;
/* This use of division is ok, because it will never be done on an LM32 */
timeout.tv_sec = timeout_us / 1000000;
timeout.tv_usec = timeout_us % 1000000;
......
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