projects
/
kinect-audio-setup.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6f82b
)
kinect_upload_fw: return -errno when fopen fails
author
Antonio Ospite <ao2@ao2.it>
Tue, 5 Jan 2016 22:25:43 +0000
(23:25 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 7 Jan 2016 16:28:56 +0000
(17:28 +0100)
This way all the error paths return negative codes.
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
d56e0c4
..
223595d
100644
(file)
--- a/
kinect_upload_fw/kinect_upload_fw.c
+++ b/
kinect_upload_fw/kinect_upload_fw.c
@@
-256,7
+256,7
@@
int main(int argc, char *argv[]) {
FILE *fw = fopen(filename, "rb");
if (fw == NULL) {
fprintf(stderr, "Failed to open %s: %s\n", filename, strerror(errno));
- return errno;
+ return
-
errno;
}
libusb_init(NULL);