Fix function declaration isn’t a prototype

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 <alan@signal11.us>
This commit is contained in:
Ludovic Rousseau
2010-10-10 09:58:14 +02:00
committed by Alan Ott
parent 306f3f7978
commit a377ee4b1b
+2 -2
View File
@@ -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);