From a377ee4b1bc58bbd16b134514fa314cfdc02635c Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 10 Oct 2010 09:58:14 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20function=20declaration=20isn=E2=80=99t=20?= =?UTF-8?q?a=20prototype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Functions with no arguments should use void hid.c:51: warning: function declaration isn’t a prototype hid.c:210: warning: function declaration isn’t a prototype Signed-off-by: Alan Ott --- mac/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mac/hid.c b/mac/hid.c index 05cfe86..720fff6 100644 --- a/mac/hid.c +++ b/mac/hid.c @@ -47,7 +47,7 @@ struct hid_device_ { }; -static hid_device *new_hid_device() +static hid_device *new_hid_device(void) { hid_device *dev = calloc(1, sizeof(hid_device)); dev->device_handle = NULL; @@ -206,7 +206,7 @@ static int make_path(IOHIDDeviceRef device, char *buf, size_t len) return res+1; } -static void init_hid_manager() +static void init_hid_manager(void) { /* Initialize all the HID Manager Objects */ hid_mgr = IOHIDManagerCreate(kCFAllocatorDefault, kIOHIDOptionsTypeNone);