Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
EtherBone Core
Commits
3f8b40f0
Commit
3f8b40f0
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate non-portable comment style.
Check for any use of division (unavailable on LM32)
parent
72bf9b64
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/format/master.c
+4
-2
4 additions, 2 deletions
api/format/master.c
api/transport/block.c
+1
-0
1 addition, 0 deletions
api/transport/block.c
with
5 additions
and
2 deletions
api/format/master.c
+
4
−
2
View file @
3f8b40f0
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
api/transport/block.c
+
1
−
0
View file @
3f8b40f0
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment