chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f432183
)
firmware_helper: fix write count
author
Duncan Sands
<baldrick@free.fr>
Fri, 9 Sep 2005 10:38:58 +0000
(12:38 +0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Fri, 9 Sep 2005 10:38:58 +0000
(12:38 +0200)
extras/firmware/firmware_helper.c
patch
|
blob
|
history
diff --git
a/extras/firmware/firmware_helper.c
b/extras/firmware/firmware_helper.c
index 7b7a307298384ccdb16e8d10f48cb404d7dae482..45815137acb97c6f37b2e28b7f518c1a44a365fa 100644
(file)
--- a/
extras/firmware/firmware_helper.c
+++ b/
extras/firmware/firmware_helper.c
@@
-118,9
+118,9
@@
int main(int argc, char **argv) {
count = 0;
while (count < fw_buffer_size) {
count = 0;
while (count < fw_buffer_size) {
-
in
t c;
+
ssize_
t c;
- c = write(fw_fd, fw_buffer+count, fw_buffer_size);
+ c = write(fw_fd, fw_buffer+count, fw_buffer_size
-count
);
if (c <= 0) {
rc = errno;
close(fw_fd);
if (c <= 0) {
rc = errno;
close(fw_fd);