kinect_upload_fw: fix -Wold-style-definition warnings
[kinect-audio-setup.git] / kinect_upload_fw / kinect_upload_fw.c
index 1466ccd..626b963 100644 (file)
@@ -64,7 +64,7 @@ void dump_bl_cmd(bootloader_command cmd) {
        LOG("\n");
 }
 
-int get_first_reply() {
+int get_first_reply(void) {
        unsigned char buffer[512];
        int res;
        int transferred;
@@ -83,7 +83,7 @@ int get_first_reply() {
 }
 
 
-int get_reply() {
+int get_reply(void) {
        unsigned char dump[512];
        status_code buffer = ((status_code*)dump)[0];
        int res;
@@ -104,14 +104,14 @@ int get_reply() {
        if(fn_le32(buffer.status) != 0) {
                LOG("Notice reading reply: last uint32_t was nonzero: %d\n", buffer.status);
        }
-       
+
        LOG("Reading reply: ");
        int i;
        for(i = 0; i < transferred; ++i) {
                LOG("%02X ", ((unsigned char*)(&buffer))[i]);
        }
        LOG("\n");
-       
+
        return res;
 }
 
@@ -212,10 +212,9 @@ int main(int argc, char** argv) {
        res = get_reply();
        seq++;
        // Now the device reenumerates.
-       
+
 cleanup:
        libusb_close(dev);
        libusb_exit(NULL);
        return 0;
 }
-