From 8e5cb85c1a23587c722e41308453e6454f2d6d36 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 22 Nov 2021 10:32:57 +0100 Subject: [PATCH] Fixed passing of handlerFunction-pointer --- helper/exec.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/exec.hpp b/helper/exec.hpp index b3d122b..f4f7301 100644 --- a/helper/exec.hpp +++ b/helper/exec.hpp @@ -8,7 +8,7 @@ /// @param cmd is the command /// @param handler is the handler(char*)-function /// @return Return-code form command -int exec(const char* cmd, const int *(handler)(char*) = nullptr){ +int exec(const char* cmd, void (*handler)(char*) = nullptr){ const int buf_size = 256; char buf[buf_size];