kinect_upload_fw: fix -Wold-style-definition warnings
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 29 Sep 2011 21:04:24 +0000 (23:04 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 29 Sep 2011 21:40:12 +0000 (23:40 +0200)
kinect_upload_fw.c:67:5: warning: old-style function definition [-Wold-style-definition]
kinect_upload_fw.c:86:5: warning: old-style function definition [-Wold-style-definition]

kinect_upload_fw/kinect_upload_fw.c

index 746bc68..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;