aboutsummaryrefslogtreecommitdiff
path: root/src/k8055.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/k8055.c')
-rw-r--r--src/k8055.c2
1 files changed, 1 insertions, 1 deletions
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;