From 1688e167c522b7082c657a6fb9c743b0e9105004 Mon Sep 17 00:00:00 2001 From: grottenolm Date: Thu, 6 Nov 2014 05:31:59 +0100 Subject: make it gcc 4.7 compatible --- src/k8055.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k8055.c b/src/k8055.c index a5b9cd2..6f3bc17 100644 --- a/src/k8055.c +++ b/src/k8055.c @@ -226,7 +226,7 @@ int k8055_open_device(int port, k8055_device** device) { } k8055_device* _device = NULL; - _device = malloc(sizeof(k8055_device)); + _device = (k8055_device*)malloc(sizeof(k8055_device)); if (_device == NULL) { print_error("could not allocate memory for device"); return K8055_ERROR_MEM; -- cgit v1.2.3