From: Klas Lindfors Date: Tue, 18 Sep 2012 06:56:51 +0000 (+0200) Subject: add void as function argument to get rid of warnings X-Git-Tag: v1.8.0~54 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610454728728308a667ede2e6b3f854120241d15;p=yubikey-personalization add void as function argument to get rid of warnings --- diff --git a/ykcore/ykcore_backend.h b/ykcore/ykcore_backend.h index d8a6497..b5917cf 100644 --- a/ykcore/ykcore_backend.h +++ b/ykcore/ykcore_backend.h @@ -47,6 +47,6 @@ int _ykusb_read(void *dev, int report_type, int report_number, int _ykusb_write(void *dev, int report_type, int report_number, char *buffer, int buffer_size); -const char *_ykusb_strerror(); +const char *_ykusb_strerror(void); #endif /* __YKCORE_BACKEND_H_INCLUDED__ */ diff --git a/ykcore/ykcore_libusb-1.0.c b/ykcore/ykcore_libusb-1.0.c index d7115fa..b7df1b3 100644 --- a/ykcore/ykcore_libusb-1.0.c +++ b/ykcore/ykcore_libusb-1.0.c @@ -198,7 +198,7 @@ int _ykusb_close_device(void *yk) return 1; } -const char *_ykusb_strerror() +const char *_ykusb_strerror(void) { static const char *buf; switch (ykl_errno) { diff --git a/ykcore/ykcore_libusb.c b/ykcore/ykcore_libusb.c index deb70e4..c210478 100644 --- a/ykcore/ykcore_libusb.c +++ b/ykcore/ykcore_libusb.c @@ -185,7 +185,7 @@ int _ykusb_close_device(void *yk) return 0; } -const char *_ykusb_strerror() +const char *_ykusb_strerror(void) { return usb_strerror(); }