diff options
Diffstat (limited to 'src/k8055.c')
-rw-r--r-- | src/k8055.c | 2 |
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; |