mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-18 02:25:16 -04:00
Linux: Fix warning: function declaration isn't a prototype
linux/hid.c:83:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] linux/hid.c: In function 'new_hid_device': linux/hid.c:83:13: warning: old-style function definition [-Wold-style-definition]
This commit is contained in:
committed by
Alan Ott
parent
8def28f09d
commit
85d608e80e
+1
-1
@@ -80,7 +80,7 @@ struct hid_device_ {
|
||||
|
||||
static __u32 kernel_version = 0;
|
||||
|
||||
hid_device *new_hid_device()
|
||||
static hid_device *new_hid_device(void)
|
||||
{
|
||||
hid_device *dev = calloc(1, sizeof(hid_device));
|
||||
dev->device_handle = -1;
|
||||
|
||||
Reference in New Issue
Block a user