mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-21 08:56:07 -04:00
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:
committed by
Alan Ott
parent
306f3f7978
commit
a377ee4b1b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user