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:
Ludovic Rousseau
2012-09-21 13:31:24 +02:00
committed by Alan Ott
parent 8def28f09d
commit 85d608e80e
+1 -1
View File
@@ -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;