projects
/
kinect-audio-setup.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2d1dcfc
)
kinect_upload_fw: fix some warnings from clang -Weverything
author
Antonio Ospite <ao2@ao2.it>
Tue, 5 Jan 2016 22:02:53 +0000
(23:02 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 7 Jan 2016 16:28:56 +0000
(17:28 +0100)
kinect_upload_fw/kinect_upload_fw.c
patch
|
blob
|
history
diff --git
a/kinect_upload_fw/kinect_upload_fw.c
b/kinect_upload_fw/kinect_upload_fw.c
index
a88d3aa
..
8092422
100644
(file)
--- a/
kinect_upload_fw/kinect_upload_fw.c
+++ b/
kinect_upload_fw/kinect_upload_fw.c
@@
-217,13
+217,13
@@
int main(int argc, char** argv) {
unsigned char page[0x4000];
int read;
do {
- read = fread(page, 1, 0x4000, fw);
+ read =
(int)
fread(page, 1, 0x4000, fw);
if (read <= 0) {
break;
}
//LOG("");
cmd.seq = fn_le32(seq);
- cmd.bytes = fn_le32(read);
+ cmd.bytes = fn_le32(
(unsigned int)
read);
cmd.cmd = fn_le32(0x03);
cmd.write_addr = fn_le32(addr);
LOG("About to send: ");