Fix compile warning on some gcc versions:
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 9 May 2009 06:24:11 +0000 (08:24 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 9 May 2009 06:24:11 +0000 (08:24 +0200)
/usr/local/libftdi-0.16/include/ftdi.h:270: warning: function
declaration isn't a prototype

Thanks to Arnim Läuger for the report.

src/ftdi.c
src/ftdi.h

index c417f70..e6f96cb 100644 (file)
@@ -110,7 +110,7 @@ int ftdi_init(struct ftdi_context *ftdi)
 
     \return a pointer to a new ftdi_context, or NULL on failure
 */
-struct ftdi_context *ftdi_new()
+struct ftdi_context *ftdi_new(void)
 {
     struct ftdi_context * ftdi = (struct ftdi_context *)malloc(sizeof(struct ftdi_context));
 
index 45fb907..f629821 100644 (file)
@@ -267,7 +267,7 @@ extern "C"
 #endif
 
     int ftdi_init(struct ftdi_context *ftdi);
-    struct ftdi_context *ftdi_new();
+    struct ftdi_context *ftdi_new(void);
     int ftdi_set_interface(struct ftdi_context *ftdi, enum ftdi_interface interface);
 
     void ftdi_deinit(struct ftdi_context *ftdi);