projects
/
hmcfgusb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d84111c
)
don't abort on write-error when sending queued packets
author
Michael Gernoth
<michael@gernoth.net>
Sat, 13 Jul 2013 10:29:57 +0000
(12:29 +0200)
committer
Michael Gernoth
<michael@gernoth.net>
Sat, 13 Jul 2013 10:29:57 +0000
(12:29 +0200)
hmland.c
patch
|
blob
|
blame
|
history
diff --git
a/hmland.c
b/hmland.c
index 1ccc843d23017f87de2ee12d04225c28615212c6..d91026a8c8ee928e215ba68287f090974c768609 100644
(file)
--- a/
hmland.c
+++ b/
hmland.c
@@
-290,7
+290,7
@@
static int hmlan_format_out(uint8_t *buf, int buf_len, void *data)
return 0;
}
return 0;
}
- /* Send al queued packets */
+ /* Send al
l
queued packets */
if (wait_for_h) {
struct queued_rx *curr_rx = qrx;
struct queued_rx *last_rx;
if (wait_for_h) {
struct queued_rx *curr_rx = qrx;
struct queued_rx *last_rx;
@@
-308,7
+308,6
@@
static int hmlan_format_out(uint8_t *buf, int buf_len, void *data)
w = write(fd, curr_rx->rx, curr_rx->len);
if (w <= 0) {
perror("write");
w = write(fd, curr_rx->rx, curr_rx->len);
if (w <= 0) {
perror("write");
- return 0;
}
last_rx = curr_rx;
curr_rx = curr_rx->next;
}
last_rx = curr_rx;
curr_rx = curr_rx->next;
Impressum
,
Datenschutz