The branch, master has been updated
via 672ac0087a0ee7a30f809d4a529285b74be3c54a (commit)
from 1e0ae3d462898bc983698d65c33b482bdd8f4242 (commit)
- Log -----------------------------------------------------------------
commit 672ac0087a0ee7a30f809d4a529285b74be3c54a
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Sat May 9 08:24:11 2009 +0200
Fix compile warning on some gcc versions:
/usr/local/libftdi-0.16/include/ftdi.h:270: warning: function
declaration isn't a prototype
Thanks to Arnim Läuger for the report.
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 2 +-
src/ftdi.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index c417f70..e6f96cb 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -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));
diff --git a/src/ftdi.h b/src/ftdi.h
index 45fb907..f629821 100644
--- a/src/ftdi.h
+++ b/src/ftdi.h
@@ -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);
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|