summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f454672)
For me it's more a return value than the actual result of some operation.
int main(int argc, char** argv) {
char default_filename[] = "firmware.bin";
char* filename = default_filename;
int main(int argc, char** argv) {
char default_filename[] = "firmware.bin";
char* filename = default_filename;
if (argc == 2) {
filename = argv[1];
if (argc == 2) {
filename = argv[1];
dev = libusb_open_device_with_vid_pid(NULL, KINECT_AUDIO_VID, KINECT_AUDIO_PID);
if (dev == NULL) {
fprintf(stderr, "Couldn't open device.\n");
dev = libusb_open_device_with_vid_pid(NULL, KINECT_AUDIO_VID, KINECT_AUDIO_PID);
if (dev == NULL) {
fprintf(stderr, "Couldn't open device.\n");
current_configuration = -1;
libusb_get_configuration(dev, ¤t_configuration);
if (current_configuration != KINECT_AUDIO_CONFIGURATION) {
current_configuration = -1;
libusb_get_configuration(dev, ¤t_configuration);
if (current_configuration != KINECT_AUDIO_CONFIGURATION) {
- res = upload_firmware(fw);
+ ret = upload_firmware(fw);
// Now the device reenumerates.
cleanup:
// Now the device reenumerates.
cleanup:
fail_libusb_open:
libusb_exit(NULL);
fclose(fw);
fail_libusb_open:
libusb_exit(NULL);
fclose(fw);